bsc/eth/downloader
John 476d5200f7
[R4R]offline block prune (#543)
* offline block prune

* update

* update

* update and add unit test

* addressed comments from walt

* Addressed comments from walt and Igor

* ensure MPT and snapshot matched

* add one more parameter to indicate blockprune

* update the logic of creating freezerDb

* update flag command description

* expose the function for db inspect the offset/startBlockNumber

* add flags to inspect prune info

* rename flag of reserved-recent-blocks to block-amount-reserved

* addressed comments from walt

* handle the case of command interruption

* refined goimports

* addressed comments from walt

* change the logic as restarting prune after interruption

* addressed comments

* reclaimed freezer logic

* introduce flag to enable/disable check between MPT and snapshot

* update the logic of frozen field in freezerDB

* update the code in all places related to freezer change

* addressed comments from dylan

* update the logic for backup block difficulty

* addressed comments from dylan
2022-01-19 18:07:49 +08:00
..
api.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
downloader_test.go fix useful difflayer item in cache been prune issue (#527) 2021-11-09 19:39:58 +08:00
downloader.go [R4R]offline block prune (#543) 2022-01-19 18:07:49 +08:00
events.go cmd,eth: 16400 Add an option to stop geth once in sync. WIP for light mode (#17321) 2019-01-30 08:40:36 +01:00
metrics.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03:00
modes.go eth/downloader: fix typo in comment (#22019) 2020-12-21 15:39:58 +01:00
peer_test.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03:00
peer.go [R4R] add extension in eth protocol handshake to disable tx broadcast (#412) 2021-10-13 11:30:19 +08:00
queue_test.go eth/downloader: enhanced test cases for downloader queue (#22114) 2021-01-05 14:56:01 +01:00
queue.go fix useful difflayer item in cache been prune issue (#527) 2021-11-09 19:39:58 +08:00
resultstore.go fix useful difflayer item in cache been prune issue (#527) 2021-11-09 19:39:58 +08:00
statesync.go core, eth: faster snapshot generation (#22504) 2021-04-14 23:23:11 +03:00
testchain_test.go eth/downloader: dynamically move pivot even during chain sync 2020-09-18 11:37:42 +03:00
types.go eth: conform better to the golint standards (#16783) 2018-06-14 13:14:52 +03:00