bsc/core/state/snapshot
zjubfd 1ded097733
[R4R]implement diff sync (#376)
* implement block process part of light sync

* add difflayer protocol

* handle difflayer and refine light processor

* add testcase for diff protocol

* make it faster

* allow validator to light sync

* change into diff sync

* ligth sync: download difflayer (#2)

* ligth sync: download difflayer

Signed-off-by: kyrie-yl <lei.y@binance.com>

* download diff layer: fix according to the comments

Signed-off-by: kyrie-yl <lei.y@binance.com>

* download diff layer: update

Signed-off-by: kyrie-yl <lei.y@binance.com>

* download diff layer: fix accroding comments

Signed-off-by: kyrie-yl <lei.y@binance.com>

Co-authored-by: kyrie-yl <lei.y@binance.com>

* update light sync to diff sync

* raise the max diff limit

* add switcher of snap protocol

* fix test case

* make commit concurrently

* remove peer for diff cache when peer closed

* consensus tuning

* add test code

* remove extra message

* fix testcase and lint

make diff block configable

wait code write

fix testcase

resolve comments

resolve comment

* resolve comments

* resolve comments

* resolve comment

* fix mistake

Co-authored-by: kyrie-yl <83150977+kyrie-yl@users.noreply.github.com>
Co-authored-by: kyrie-yl <lei.y@binance.com>
2021-09-28 16:03:38 +08:00
..
account.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
conversion.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
difflayer_test.go snapshot, trie: fixed typos, mostly in snapshot pkg (#22133) 2021-01-07 08:36:21 +02:00
difflayer.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
disklayer_test.go [R4R]implement diff sync (#376) 2021-09-28 16:03:38 +08:00
disklayer.go snapshot, trie: fixed typos, mostly in snapshot pkg (#22133) 2021-01-07 08:36:21 +02:00
generate_test.go core, eth: faster snapshot generation (#22504) 2021-04-14 23:23:11 +03:00
generate.go core, eth: abort snapshot generation on snap sync and resume later 2021-04-30 17:03:10 +03:00
iterator_binary.go snapshot, trie: fixed typos, mostly in snapshot pkg (#22133) 2021-01-07 08:36:21 +02:00
iterator_fast.go snapshot, trie: fixed typos, mostly in snapshot pkg (#22133) 2021-01-07 08:36:21 +02:00
iterator_test.go [R4R]implement diff sync (#376) 2021-09-28 16:03:38 +08:00
iterator.go core/state/snapshot: fix typo (#408) 2021-09-06 11:22:21 +08:00
journal.go core, eth: abort snapshot generation on snap sync and resume later 2021-04-30 17:03:10 +03:00
snapshot_test.go [R4R]implement diff sync (#376) 2021-09-28 16:03:38 +08:00
snapshot.go [R4R]implement diff sync (#376) 2021-09-28 16:03:38 +08:00
sort.go core: fix broken tests due to API changes + linter 2020-02-25 12:51:16 +02:00
wipe_test.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
wipe.go core, eth: faster snapshot generation (#22504) 2021-04-14 23:23:11 +03:00