go-ethereum/miner
Manav Darji adad83d6ac
consensus/bor: add span store abstraction for stateless verification (#1472)
Add a new abstraction called span store in bor consensus. This makes the header verification stateless as instead of fetching validator set (of a span) from genesis contract, we rely on span from heimdall itself for validator set. This doesn't change any assumptions for consensus as the data in genesis contracts is written by fetching span details from heimdall in the first place. 

This helps us with multiple things such as header verification for snap sync, validating producer set against header's extra data, and using heimdall as a source of truth instead of making a contract call to genesis contract which generally leads to issues when importing side chains (as we need to use the side chain state and not canonical). 

Span store is a minimal cache which maintains last 10 spans in memory. It provide simple read methods via span id and block number so that we can use it in consensus.
2025-05-07 21:34:12 +05:30
..
fake_miner.go consensus/bor: add span store abstraction for stateless verification (#1472) 2025-05-07 21:34:12 +05:30
miner.go Merge tag 'v1.14.10' into lmartins/upstream_merge_v1.14.10 2025-02-04 07:41:07 -03:00
miner_test.go core/state: state reader abstraction (#29761) 2024-09-05 13:10:47 +03:00
ordering.go Merge branch 'release/1.13' into upstream_merge_1.13 2024-07-10 11:19:34 +05:30
ordering_test.go Merge branch 'develop' of https://github.com/maticnetwork/bor into upstream_merge 2024-05-28 17:20:23 +05:30
payload_building.go Merge tag 'v1.14.10' into lmartins/upstream_merge_v1.14.10 2025-02-04 07:41:07 -03:00
payload_building_test.go Merge tag 'v1.14.10' into lmartins/upstream_merge_v1.14.10 2025-02-04 07:41:07 -03:00
pending.go fix: lint, add: milestone related tests in downloader 2024-09-05 14:03:10 +05:30
worker.go Revert "removing requests from bor" 2025-02-20 14:04:48 -03:00
worker_test.go consensus/bor: add span store abstraction for stateless verification (#1472) 2025-05-07 21:34:12 +05:30