lotus/chain/consensus
Steven Allen 784214ae05
feat: sync: validate (early) that blocks fall within range (#10691)
This will reject blocks in pubsub validation if they're either:

1. Too far into the future (5 blocks beyond the expected head).
2. Too far into the past (before finality with respect to our current
   head).

Specifically:

1. We were previously rejecting future blocks in the sync logic, but not
   in pubsub itself.
2. We never used to check if a block was too _old_.

Motivation: Blocks that are too new/too old can cause us to perform
quite a bit of unnecessary work.
2023-04-22 10:15:31 -07:00
..
filcns feat: sync: validate (early) that blocks fall within range (#10691) 2023-04-22 10:15:31 -07:00
common.go Merge branch 'release/v1.20.0' into asr/merge-release-into-master 2023-01-16 10:51:22 -05:00
compute_state.go revert dead code 2023-03-30 18:11:44 +03:00
iface.go feat: sync: validate (early) that blocks fall within range (#10691) 2023-04-22 10:15:31 -07:00
signatures.go Merge branch 'release/v1.20.0' into asr/merge-release-into-master 2023-02-03 09:27:04 -05:00
utils.go chore: fix imports 2022-06-14 17:00:51 +02:00