erigon-pulse/turbo/snapshotsync/freezeblocks
Alex Sharov 329d18ef6f
snapshots: reduce merge limit of blocks to 100K (#8614)
Reason: 
- produce and seed snapshots earlier on chain tip. reduce depnedency on
"good peers with history" at p2p-network.
Some networks have no much archive peers, also ConsensusLayer clients
are not-good(not-incentivised) at serving history.
- avoiding having too much files:
more files(shards) - means "more metadata", "more lookups for
non-indexed queries", "more dictionaries", "more bittorrent
connections", ...
less files - means small files will be removed after merge (no peers for
this files).


ToDo:
[x] Recent 500K - merge up to 100K 
[x] Older than 500K - merge up to 500K 
[x] Start seeding 100k files
[x] Stop seeding 100k files after merge (right before delete)

In next PR: 
[] Old version of Erigon must be able download recent hashes. To achieve
it - at first start erigon will download preverified hashes .toml from
s3 - if it's newer that what we have (build-in) - use it.
2023-11-01 23:22:35 +07:00
..
beacon_block_reader.go Compress snapshots for Caplin with lz4 level=1 (#8609) 2023-10-30 13:48:14 +01:00
block_reader.go Revert "Move validator set snapshot computation to bor_heimdall stage… (#8580) 2023-10-25 14:02:31 +02:00
block_snapshots_test.go snapshots: reduce merge limit of blocks to 100K (#8614) 2023-11-01 23:22:35 +07:00
block_snapshots.go snapshots: reduce merge limit of blocks to 100K (#8614) 2023-11-01 23:22:35 +07:00
bor_snapshots.go snapshots: reduce merge limit of blocks to 100K (#8614) 2023-11-01 23:22:35 +07:00
caplin_snapshots.go Compress snapshots for Caplin with lz4 level=1 (#8609) 2023-10-30 13:48:14 +01:00
dump_test.go move chainname and snapcfg packages to erigon-lib (#8508) 2023-10-18 13:37:39 +07:00