kadena-io / chainweb-node

Chainweb: A Proof-of-Work Parallel-Chain Architecture for Massive Throughput
https://docs.kadena.io/basics/whitepapers/overview
BSD 3-Clause "New" or "Revised" License
248 stars 95 forks source link

Staging area for blocks with missing dependencies #110

Open mercadoa opened 5 years ago

mercadoa commented 5 years ago

When a block header with missing dependencies is received it is likely that those dependencies will be received later on and the block can be added to the database.

For that, instead of discarding the block because of a validation failure, the block should be stored temporarily in a staging area.

In addition a synchronization session should be triggered to query the missing dependencies for that block header. For that it is helpful when the origin of the block header is recorded (cf. #79).

If the block header is part of an active cut synchronization should be done with high priority.

mercadoa commented 5 years ago

Need Lars to opine on whether this is still needed

mercadoa commented 5 years ago

As per discussion with Lars - keep issue, but not a high priority / technical debt

mercadoa commented 5 years ago

Moved issue over to chainweb-node (110)