bsc/common
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
..
bitutil common,crypto: move fuzzers out of core (#22029) 2020-12-23 17:44:45 +01:00
compiler common/compiler: fix parsing of solc output with solidity v.0.8.0 (#22092) 2021-01-05 14:48:22 +01:00
fdlimit common/fdlimit: build on DragonflyBSD (#21241) 2020-06-19 15:43:52 +02:00
gopool [R4R]implement diff sync (#376) 2021-09-28 16:03:38 +08:00
hexutil all: remove redundant conversions and import names (#21903) 2020-11-25 21:00:23 +01:00
math accounts, signer: implement gnosis safe support (#21593) 2020-09-29 17:40:08 +02:00
mclock common/mclock: remove dependency on github.com/aristanetworks/goarista (#22211) 2021-01-22 20:15:27 +01:00
prque les: move client pool to les/vflux/server (#22495) 2021-04-06 20:42:50 +02:00
big.go core, vm, common: define constantinople fork + shift (#16045) 2018-02-23 12:32:57 +02:00
bytes_test.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
bytes.go common: remove ToHex and ToHexArray (#21610) 2020-11-04 11:20:39 +01:00
debug.go core: added basic chain configuration 2016-04-01 01:01:10 +02:00
format.go common, core, light: add block age into info logs 2018-09-20 12:56:35 +03:00
path.go common: improve documentation comments (#16701) 2018-05-29 12:42:21 +02:00
size_test.go cmd/utils, eth: relinquish GC cache to read cache in archive mode 2019-02-07 14:36:25 +02:00
size.go core, cmd, vendor: fixes and database inspection tool (#15) 2019-05-16 10:39:34 +03:00
test_utils.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
types_test.go common: improve printing of Hash and Address (#21834) 2020-12-08 19:19:09 +01:00
types.go all: make logs a bit easier on the eye to digest (#22665) 2021-04-15 20:35:00 +03:00