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
ucwong
83e4c49e2b
trie : use trie.NewStackTrie instead of new(trie.Trie) ( #22246 )
...
The PR makes use of the stacktrie, which is is more lenient on resource consumption, than the regular trie, in cases where we only need it for DeriveSha
2021-02-02 13:09:23 +01:00
gary rong
87c0ba9213
core, eth, les, trie: add a prefix to contract code ( #21080 )
2020-08-21 15:10:40 +03:00
gary rong
28c5a8a54b
les: implement new les fetcher ( #20692 )
...
* cmd, consensus, eth, les: implement light fetcher
* les: address comment
* les: address comment
* les: address comments
* les: check td after delivery
* les: add linearExpiredValue for error counter
* les: fix import
* les: fix dead lock
* les: order announces by td
* les: encapsulate invalid counter
* les: address comment
* les: add more checks during the delivery
* les: fix log
* eth, les: fix lint
* eth/fetcher: address comment
2020-07-28 18:02:35 +03:00
rjl493456442
049e17116e
core, eth: implement eth/65 transaction fetcher
2020-02-11 13:56:36 +02:00