KeefeL
ec8d46e059
reorganize the logic of reannouncing transactions ( #620 )
2021-12-03 13:43:39 +08:00
dylanhuang
a9ac317571
prepare for release v.1.1.6 ( #603 )
2021-11-29 10:59:36 +08:00
dylanhuang
3337081222
[R4R] pre-release ci flow ( #594 )
...
* ci: add pre release ci flow
* ci: fix change log format
2021-11-26 18:48:56 +08:00
KeefeL
fbc52de8f6
[R4R]reannounce local pending transactions ( #570 )
...
* reannouce local pending transactions
* add tests for tx_pool reannouce local pending transactions
* add tests for handler reannounce local pending transactions
2021-11-25 11:00:14 +08:00
flywukong
1d94308fe9
go.mod: update goleveldb ( #23417 ) ( #578 )
...
Co-authored-by: ucwong <ucwong@126.com>
2021-11-24 14:23:54 +08:00
zjubfd
a3f9e232be
eth/protocols/snap, trie: better error-handling ( #23657 ) ( #582 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-11-24 10:47:37 +08:00
yutianwu
8ff7d531e8
Merge pull request #550 from binance-chain/develop
...
Release v1.1.5
v1.1.5
2021-11-16 14:58:33 +08:00
yutianwu
6fb789de67
prepare for release v.1.1.5 ( #549 )
2021-11-16 13:51:44 +08:00
KeefeL
288eb52e9f
get diff accounts by replaying block when diff layer not found ( #536 )
...
Signed-off-by: Keefe-Liu <bianze.kernel@gmail.com>
2021-11-16 11:39:50 +08:00
yutianwu
db2eea7fbd
Merge pull request #532 from binance-chain/develop
...
pre release of v1.1.5
2021-11-10 11:51:03 +08:00
zjubfd
9603407407
fix useful difflayer item in cache been prune issue ( #527 )
...
add logs
fix useful difflayer item in cache been prune issue
fix too many open files
2021-11-09 19:39:58 +08:00
SolidityGo
176407ae5f
[R4R] fix: graceful shutdown bug ( #509 )
...
* fix: graceful shutdown bug that diff handshake failure caused waitDiffExtension can't receive exit signal
* fix: add lock for peerset
2021-11-08 13:09:07 +08:00
KeefeL
94e5e6cfdd
accelarate get diff accounts with scope ( #493 )
...
Signed-off-by: Keefe-Liu <bianze.kernel@gmail.com>
2021-11-08 13:08:02 +08:00
yutianwu
30972a7b7b
Merge pull request #506 from binance-chain/develop
...
[R4R] Release v1.1.4
v1.1.4
2021-11-02 14:12:04 +08:00
yutianwu
32855963cd
prepare for release v.1.1.4 ( #504 )
2021-11-02 11:58:18 +08:00
yutianwu
b71cbdfe29
implement bep 95
...
fix test cases
add upgrade name
fix comments
2021-11-02 11:38:55 +08:00
John.h
354d0a4dab
core/state/snapshot: fix BAD BLOCK error when snapshot is generating ( #23635 ) ( #485 )
...
* core/state/snapshot: fix BAD BLOCK error when snapshot is generating
* core/state/snapshot: alternative fix for the snapshot generator
* add comments and minor update
Co-authored-by: Martin Holst Swende <martin@swende.se>
* core/state/snapshot: fix BAD BLOCK error when snapshot is generating
* core/state/snapshot: alternative fix for the snapshot generator
* add comments and minor update
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Ziyuan Zhong <zzy.albert@163.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-11-01 20:34:58 +08:00
KeefeL
797ba71c80
[R4R]fix prefetcher related bugs ( #491 )
...
* fix goroutine leak in prefetcher
Signed-off-by: Keefe-Liu <bianze.kernel@gmail.com>
* wait all goroutine done to avoid prefetcher close panic
Signed-off-by: Keefe-Liu <bianze.kernel@gmail.com>
2021-11-01 14:55:20 +08:00
yutianwu
98c4e81643
Merge pull request #473 from j75689/ci/fix_test_flow
...
Ci/fix test flow
2021-11-01 10:30:29 +08:00
j75689
a9657cb0e6
debug
2021-10-21 15:24:30 +08:00
j75689
87bd1b0d61
feat: time.Tick replaced with time.Ticker
2021-10-21 14:51:31 +08:00
j75689
3e5a7c0abc
fix: unit-test failed
2021-10-21 14:51:31 +08:00
zjubfd
60e92c1b14
Merge pull request #472 from binance-chain/bitmap_cache_metrics
...
[R4R]add metrics for contract code bitmap cache
2021-10-21 09:51:41 +08:00
j75689
100db0784a
ci: remove unnecessary job in unit test
2021-10-20 18:56:42 +08:00
j75689
faa007de15
ci: fix error on install truffle
2021-10-20 18:56:42 +08:00
kyrie-yl
a04ee709a5
add metrics for contract code bitmap cache
...
Signed-off-by: kyrie-yl <yl.on.the.way@gmail.com>
2021-10-20 14:34:57 +08:00
zjubfd
b6035c1afa
Merge pull request #471 from guagualvcha/down_nil_issue
...
[R4R]fix downloader nil issue when the header is mising
v1.1.3
2021-10-20 12:09:14 +08:00
guagualvcha
dc8df5c857
fix download nil issue
2021-10-20 12:00:40 +08:00
zjubfd
4edd2b105d
Merge pull request #460 from binance-chain/develop
...
[R4R] Release v1.1.3
2021-10-20 10:28:18 +08:00
zjubfd
7ba77c53cb
Merge pull request #465 from guagualvcha/v_1.1.3
...
[R4R]prepare for release v1.1.3
2021-10-19 15:05:45 +08:00
guagualvcha
eb581fd949
prepare for release v1.1.3
2021-10-19 10:55:19 +08:00
dylanhuang
f2f68dba15
ci: unit test and truffle test ( #456 )
...
* ci: add unit test
fix: failed on test
* ci: add truffle test
* ci: update os version
* ci: add cache for go build
2021-10-18 18:16:32 +08:00
kyrie-yl
aecb61296d
fix cache key do not have hash func ( #455 )
...
Signed-off-by: kyrie-yl <yl.on.the.way@gmail.com>
2021-10-15 18:10:58 +08:00
zjubfd
8f605f5904
fix cache key ( #454 )
2021-10-15 17:04:30 +08:00
Steven Tran
31463f8dd1
parallel bloom calculation ( #445 )
...
* parallel bloom calculation
* indent
* add condition if bloomJobs not nil
* add handler for worker
* fix format
* bloomWorker should exit when all txs have been processed
* rename BloomPair => BloomHash
* add size to map
* rename & unique variable
* bloomJobs => bloomProcessors
* fix
* only assign bloom if empty
* abstraction method for processing receipt bloom
* remove duplicate receipt_processor
* rename Processor
* fix ReceiptProcessor
* fix ReceiptBloomGenertor typo
* reduce worker to 1
* remove empty wg
* add defence code to check if channel is closed
* remove nil
* format fix
* remove thread pool
* use max 100 worker capacity
* reduce worker size
* refactor startWorker
2021-10-15 16:30:44 +08:00
kyrie-yl
33aa77949f
cache bitmap and change the cache type of GetCode ( #449 )
...
* change cache type of GetCode from fastcache to lrucache
Signed-off-by: kyrie-yl <yl.on.the.way@gmail.com>
* add cache for contract code bitmap
Signed-off-by: kyrie-yl <yl.on.the.way@gmail.com>
* core/vm: rework jumpdest analysis benchmarks (#23499 )
* core/vm: rework jumpdest analysis benchmarks
For BenchmarkJumpdestOpAnalysis use fixed code size of ~1.2MB
and classic benchmark loop.
* core/vm: clear bitvec in jumpdest analysis benchmark
Co-authored-by: Paweł Bylica <chfast@gmail.com>
2021-10-15 15:12:14 +08:00
yutianwu
610f6a5e63
[R4R] add extension in eth protocol handshake to disable tx broadcast ( #412 )
...
* add extension for eth protocol handshake
* fix comments
2021-10-13 11:30:19 +08:00
yutianwu
c737f66839
Merge pull request #426 from binance-chain/improve_backoff
...
[R4R] add block proccess backoff time when validator is not in turn and received in turn block
2021-10-13 09:54:33 +08:00
zjubfd
5e210b311b
fix concurrent write seen of subfetcher ( #446 )
2021-10-12 11:29:17 +08:00
KeefeL
59d3b537a5
Merge pull request #442 from KeefeL/diff_accouts
...
ignore empty tx in GetDiffAccountsWithScope
2021-10-11 11:56:16 +08:00
zjubfd
03febe17c2
fix blockhash not correct for the logs of system tx receipt ( #444 )
2021-10-11 10:55:52 +08:00
Keefe-Liu
0315f60924
ignore empty tx in GetDiffAccountsWithScope
...
Signed-off-by: Keefe-Liu <bianze.kernel@gmail.com>
2021-10-08 17:41:55 +08:00
KeefeL
b2f1d25f83
Export get diff accounts in block api ( #431 )
...
* support get diff accounts
Signed-off-by: Keefe-Liu <bianze.kernel@gmail.com>
* add testcase for diff accounts
Signed-off-by: Keefe-Liu <bianze.kernel@gmail.com>
2021-10-08 12:29:38 +08:00
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
yutianwu
7f9cdc4ae5
minor update
2021-09-27 10:50:13 +08:00
yutianwu
77f19d435d
wait if td is the same
2021-09-26 19:09:31 +08:00
yutianwu
065e69e320
fix comments
2021-09-26 18:23:58 +08:00
yutianwu
4a84cfdf62
add more log
2021-09-24 14:29:16 +08:00
yutianwu
e0e58b2345
update comment
2021-09-23 19:12:34 +08:00
yutianwu
88ba737a46
add block proccess backoff time when validator is not in turn
2021-09-23 16:05:09 +08:00