erigon-pulse/eth
Alex Sharov d41d523050
Downloader: add ProhibitNewDownloads() (#8939)
"whitelisting" mechanism (list of files - stored in DB) - which
protecting us from downloading new files after upgrade/downgrade was
broken. And seems it became over-complicated with time.
I replacing it by 1 persistent flag inside downloader:
"prohibit_new_downloads.lock"
Erigon will turn downloader into this mode after
downloading/verification of first snapshots.


```
//Corner cases:
	// - Erigon generated file X with hash H1. User upgraded Erigon. New version has preverified file X with hash H2. Must ignore H2 (don't send to Downloader)
	// - Erigon "download once": means restart/upgrade/downgrade must not download files (and will be fast)
	// - After "download once" - Erigon will produce and seed new files
```

------
`downloader --seedbox` is never "prohibit new downloads"
2023-12-12 16:05:56 +07:00
..
calltracer evm: no interface (#8376) 2023-10-05 12:23:08 +07:00
ethconfig estimate: less ram for indexing (#8911) 2023-12-06 09:20:28 +01:00
ethconsensusconfig rpcdaemon: must not create db - because doesn't know right parameters (#8445) 2023-10-12 14:11:46 +07:00
ethutils reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
filters Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
gasprice EthereumExecutionService in MockSentry (#8373) 2023-10-05 18:30:19 +02:00
integrity Sentinel refactor (#8296) 2023-10-22 01:17:18 +02:00
protocols/eth Simplify RLP size calculations (#8506) 2023-10-18 09:28:11 +02:00
stagedsync Downloader: add ProhibitNewDownloads() (#8939) 2023-12-12 16:05:56 +07:00
tracers Adds access list sorting (#8933) 2023-12-09 17:25:20 +07:00
api_backend.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
api.go Embed rpcdaemon: prepared direct clients (#3492) 2022-02-12 19:47:19 +07:00
backend.go Downloader: add ProhibitNewDownloads() (#8939) 2023-12-12 16:05:56 +07:00
bloombits.go
discovery.go