bsc/rlp
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
..
decode_tail_test.go all: update license information 2016-04-15 09:48:05 +02:00
decode_test.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
decode.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
doc.go rlp: improve nil pointer handling (#20064) 2019-09-13 11:10:57 +02:00
encode_test.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
encode.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
encoder_example_test.go rlp: improve nil pointer handling (#20064) 2019-09-13 11:10:57 +02:00
iterator_test.go cmd, core, eth: background transaction indexing (#20302) 2020-05-11 18:58:43 +03:00
iterator.go core/rawdb: fix transaction indexing/unindexing hashing error (#22457) 2021-03-16 12:15:14 +02:00
raw_test.go core/types, rlp: optimize derivesha (#21728) 2020-11-04 19:29:24 +01:00
raw.go core/types, rlp: optimize derivesha (#21728) 2020-11-04 19:29:24 +01:00
safe.go [R4R]offline block prune (#543) 2022-01-19 18:07:49 +08:00
typecache.go [R4R]implement diff sync (#376) 2021-09-28 16:03:38 +08:00
unsafe.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00