bsc/node
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_test.go internal/web3ext, node: migrate node admin API (Start|Stop)RPC->HTTP (#22461) 2021-03-23 11:41:23 +02:00
api.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
config_test.go cmd, node, p2p/simulations: fix node account manager leak (#19004) 2019-02-07 12:40:36 +02:00
config.go [R4R]implement diff sync (#376) 2021-09-28 16:03:38 +08:00
defaults.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
doc.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
endpoints.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
errors.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
lifecycle.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
node_example_test.go node: refactor package node (#21105) 2020-08-03 19:40:46 +02:00
node_test.go all: add read-only option to database (#22407) 2021-03-22 19:06:30 +01:00
node.go [R4R]offline block prune (#543) 2022-01-19 18:07:49 +08:00
rpcstack_test.go cmd/geth, node: allow configuring JSON-RPC on custom path prefix (#22184) 2021-02-02 10:05:46 +01:00
rpcstack.go node: always show websocket url in logs (#22307) 2021-02-18 10:40:19 +01:00
utils_test.go all: remove unneeded parentheses (#21921) 2021-02-02 11:32:44 +02:00