lotus/chain
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
..
actors refactor: stop using deprecated io/ioutil 2023-03-29 15:40:49 -04:00
beacon Merge remote-tracking branch 'origin/master' into feat/go-data-transfer-v2 2023-03-15 11:37:53 +01:00
consensus feat: sync: validate (early) that blocks fall within range (#10691) 2023-04-22 10:15:31 -07:00
ethhashlookup simplify transaction hash db queries, prevent fd leaks 2023-01-30 11:03:12 -05:00
events Merge pull request #10562 from Jorropo/boxo 2023-04-20 16:24:22 +02:00
exchange fix: error checks 2023-01-04 20:10:21 +08:00
gen chore: all: migrate from go-libipfs to boxo 2023-04-18 17:22:18 +02:00
index chore: all: migrate from go-libipfs to boxo 2023-04-18 17:22:18 +02:00
market Address simple linter issues 2022-11-24 16:32:27 +00:00
messagepool address review comment 2023-04-21 20:03:13 +00:00
messagesigner fix: Don't call WalletExport in msg signing flows 2023-02-10 02:37:59 +01:00
rand fix make gen 2022-08-29 16:25:30 +02:00
state lint 2022-11-09 11:38:16 +02:00
stmgr revert dead code 2023-03-30 18:11:44 +03:00
store chainstore: Fix raw blocks getting scanned for links during snapshots (#10684) 2023-04-21 15:16:26 -07:00
sub Merge pull request #10562 from Jorropo/boxo 2023-04-20 16:24:22 +02:00
types chore: all: migrate from go-libipfs to boxo 2023-04-18 17:22:18 +02:00
vectors NV18: Filecoin EVM runtime + Actor Events + EthAccount + EAM + f4 addressing (#9998) 2023-01-13 19:11:13 +00:00
vm chore: all: migrate from go-libipfs to boxo 2023-04-18 17:22:18 +02:00
wallet NV18: Filecoin EVM runtime + Actor Events + EthAccount + EAM + f4 addressing (#9998) 2023-01-13 19:11:13 +00:00
badtscache.go refactor: update cache to the new generic version (#10463) 2023-03-13 15:29:09 -07:00
block_receipt_tracker.go refactor: update cache to the new generic version (#10463) 2023-03-13 15:29:09 -07:00
checkpoint.go chore: fix imports 2022-06-14 17:00:51 +02:00
sync_manager_test.go fix make gen 2022-08-29 16:25:30 +02:00
sync_manager.go Don't use go-libp2p-core 2022-08-25 14:20:41 -04:00
sync_test.go Merge branch 'master' into adlrocha/consistent-bcast 2023-03-28 16:55:06 +02:00
sync.go feat: sync: validate (early) that blocks fall within range (#10691) 2023-04-22 10:15:31 -07:00
syncstate.go Expose WorkerID 2020-10-28 20:22:07 +01:00
types_test.go fix make gen 2022-08-29 16:25:30 +02:00