You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
keep head_block_hash list additionally to map in genserver state (should be a list because there could be multiple valid head blocks in the future)
to get list of blocks, traverse from latest, via prev_block_hash to the bottom
refactor block validation to have only block and chainstate as parameter. get the prev_block by hash from the chain, and the traverse the chain to get blocks for difficulty check