Skip to content

Commit

Permalink
blockchain/chainsync: comment about keeping block cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jbenet committed Oct 28, 2019
1 parent ae5b6d8 commit 1f98527
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/systems/filecoin_blockchain/chainsync/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ State Machine:
- Blocks can be validated in progressive stages, in order to minimize resource expenditure.
- Validation computation is considerable, and a serious DOS attack vector.
- Secure implementations must carefully schedule validation and minimize the work done by pruning blocks without validating them fully.
- `ChainSync` SHOULD keep a cache of unvalidated blocks (ideally sorted by likelihood of belonging to the chain), and delete unvalidated blocks when they are passed by `FinalityTipset`, or when `ChainSync` is under significant resource load.
- **Progressive Stages of Block Validation**
- _(TODO: move this to blockchain/Block section)_
- **BV0 - Syntactic Validation**: Validate data structure packing and ensure correct typing.
Expand Down

0 comments on commit 1f98527

Please sign in to comment.