Testing branch

Testing branch has been updated.

https://github.com/CryptoManiac/novacoin/tree/novacoin-next

screenshot

Switch to unspent coins approach

This commit replaces old transactions index with unspent coins database
which contains a basic metadata like heights, amounts, coinstake/coinbase 
flags and timestamps.

We still need access to blockchain for proof-of-stake blocks validation. 
Currently CheckProofOfStake() uses the coin database to find the block height, 
and then scans that block to find the dependency of coinstake kernel.

Batch block connection during initial block download

This reduces the load on the database engine, as subsequent blocks often
update an earlier block's transaction already.

As a result we’ve got a significantly smaller (~30% drop of size) and faster database.

[AMD64  | i686 | src]

Please note that this feature is extremely experimental ATM, some parts of functionality weren’t tested very well.

Update: binaries were rebuilt from latest snapshot. No broadcasting attempts of orphaned coinstake txns anymore.

—————

Updated again.

  • Don’t process PoS block coinbase in the ConnectBlock()/DisconnectBlock(), ~3-4mb smaller database size;
  • Known issues with reorganize and PoS miner has been fixed.

Update: issue suspected with validation of coinstake signature in block #69484, we can’t reproduce it but “-next” builds were removed for now.

Leave a Reply

Your email address will not be published. Required fields are marked *