Repository navigation
refactor chain to be map of blocks, traverse top to bottom #88
Copy link
Copy link
Closed
Description
thepiwo
opened on Oct 25, 2017
Issue body actions
- replace list in chain worker with map
- reference blocks by hash in this map
- 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
Reactions are currently unavailable
Activity
- added a commit that references this issue
on Oct 30, 2017 - added 2 commits that reference this issue
on Oct 30, 2017 - added 7 commits that reference this issue
on Oct 31, 2017 - added 2 commits that reference this issue
on Oct 31, 2017 - added 5 commits that reference this issue
on Nov 1, 2017 - added a commit that references this issue
on Nov 1, 2017
Metadata
Metadata
Assignees
Labels
No labels