This PR all prerequisites for working with time and adjustments of mining difficulty, And miscellaneous bug fixes/improvements
Time field is added to GBlock
Header validation takes time parameter. It's needed in order to reject blocks from the future (not implemented yet)
BH data type is moved to HSChain.PoW.Types since we need to pass ancestor chain to the block validation in order to compute difficulty adjustments
RxMined message added as an optimization. This way mined block is processed atomically and node doesn't proceed to ask other nodes about freshly mined block they obviously don't have
Block is forced to WHNF in sendNewBlock
Peer sends announce immediately on connection which enables immediate sync
This PR all prerequisites for working with time and adjustments of mining difficulty, And miscellaneous bug fixes/improvements
BH
data type is moved toHSChain.PoW.Types
since we need to pass ancestor chain to the block validation in order to compute difficulty adjustmentsRxMined
message added as an optimization. This way mined block is processed atomically and node doesn't proceed to ask other nodes about freshly mined block they obviously don't havesendNewBlock