Working with database is split into separate package hschain-db for reuse in hschain-PoW. Connection is no longer carries caches and type varibale of block data. Request caching which is specific for the hschain is moved to the separate monad.
State in PoS blockchain is now managed using idea from hschain-PoW: StateView. It is somewhat simpler because no block rollbacks. There's simple im-memory implementation and one for mock coin which stores state in the database.
Cleaned up mempool implementation for PoS. Mempool now run in separate thread so there's no delay due to filtering.
Working with database is split into separate package
hschain-db
for reuse inhschain-PoW
. Connection is no longer carries caches and type varibale of block data. Request caching which is specific for thehschain
is moved to the separate monad.State in PoS blockchain is now managed using idea from
hschain-PoW
: StateView. It is somewhat simpler because no block rollbacks. There's simple im-memory implementation and one for mock coin which stores state in the database.Cleaned up mempool implementation for PoS. Mempool now run in separate thread so there's no delay due to filtering.