bsc/eth/downloader
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
..
api.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
downloader_test.go [R4R]implement diff sync (#376) 2021-09-28 16:03:38 +08:00
downloader.go [R4R]implement diff sync (#376) 2021-09-28 16:03:38 +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] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
queue_test.go eth/downloader: enhanced test cases for downloader queue (#22114) 2021-01-05 14:56:01 +01:00
queue.go eth/downloader: remove unnecessary condition (#22052) 2020-12-27 22:26:42 +01:00
resultstore.go eth/downloader: refactor downloader + queue (#21263) 2020-07-24 10:46:26 +03: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