Commit Graph

13481 Commits

Author SHA1 Message Date
Keefe-Liu
fcfc57feb3 upgrade docker version to 1.6.1 2022-06-23 03:03:36 +08:00
Felix Lange
4b8c03b129 p2p: define DiscReason as uint8 (#24507)
All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
2022-06-23 02:42:38 +08:00
qinglin89
0137f20a31 refactor: cuncurrency safe for state_prefetcher 2022-06-21 12:36:59 +08:00
qinglin89
ebceb25176 fix:correct logic for eip check of NewEVMInterpreter 2022-06-20 18:47:25 +08:00
setunapo
8c36d29f99 Improve the state prefetch dispatch policy
** replace atomic read by channel close to interrupt state prefetch
** try to do state prefetch when the prefetch thread is idle, no need to divide into 3 sub-arrays
   it will make the prefetchers workload balance
2022-06-20 14:59:51 +08:00
setunapo
28f80903dd Improve StatePrefetch, use AsMessageNoNonceCheck to skip nonce check
For state prefetch, no need to check transaction's nonce,
since the transaction's result will be discarded anyway.
2022-06-17 16:05:28 +08:00
WayToFuture
85371535d7
fix pipecommit issue (#932) 2022-06-13 16:40:14 +08:00
zjubfd
de4abf9d09
Merge pull request #943 from RumeelHussainbnb/patch-1
[R4R]Updated Links to docs.bnbchain.org
2022-06-13 11:24:16 +08:00
RumeelHussainbnb
02e91287d6
Updated Links to docs.bnbchain.org 2022-06-10 13:22:59 +05:00
zjubfd
70d08a5791
Merge pull request #942 from bnb-chain/hardfork_euler_mainnet
[R4R] Release For BSC v1.1.11
v1.1.11
2022-06-08 21:56:50 +08:00
cosinlink
979bb8fca9 feat: add release info of BSC v1.1.11 2022-06-07 17:19:26 +08:00
cosinlink
0080707fc7 feat: update Euler Fork blockNumber 2022-06-07 16:52:10 +08:00
flywukong
aa3cc8253f
Merge pull request #924 from flywukong/improve-updateSnap
asynchronous  update snap in  updatetrie
2022-06-07 14:06:12 +08:00
flywukong
fea1c96d28 asynchronous update snap in updatetrie 2022-06-07 12:00:35 +08:00
WayToFuture
2288373b7e
Merge pull request #905 from forcodedancing/improve_snap_lock
[R4R] improve snap mutex
2022-06-07 09:57:35 +08:00
goth
b8413b129e chores: add BEP-127 operation readme 2022-05-26 11:50:59 +08:00
forcodedancing
fe2d84bd4a improve snap mutex 2022-05-12 10:07:01 +08:00
zjubfd
2f2b98abb2
Merge pull request #888 from bnb-chain/develop
[R4R] Release For BSC v1.1.10
v1.1.10
2022-05-05 17:26:16 +08:00
zjubfd
55ef216c66 relace binance to bnb in changelog 2022-05-05 13:32:24 +08:00
zjubfd
b679ba81f2
prepare for release v1.1.10 (#889) 2022-05-05 11:29:33 +08:00
Gothery
4feb52e5b0
[R4R]: add Euler Hardfork, including BEP-127 and BEP-131 (#885)
* feat: add BEP-127 and BEP-131 hardfork bytecode to upgrade

* feat: force check that Euler height cannot be a multiple of 200, fix getCurrentValidators, raise SystemTxsGas after Euler fork

Co-authored-by: goth <goth>
2022-04-29 18:03:22 +08:00
WayToFuture
5b5abc4e22
[R4R] fix validator pipecommit issue (#877)
* fix validator account root issue in piepecommit

* fix test and imports

* add check for snap

* refacto a bit
2022-04-29 15:45:55 +08:00
Leon
717b38c5f5
[R4R] fix:defer bloomprocessor close (#860)
* fix:defer bloomprocessor close

* fix: fix deadlock in Close

* perf:rm defer bloomprocessors Close and manual close before return
2022-04-28 18:22:02 +08:00
Leon
0f5a4c87db
[R4R]fix:Shift panic for zero length of heads (#870)
* fix:Shift panic for zero length of heads

* fix: make sure peek before shift

* refactor and update ut

* refactor
2022-04-25 10:47:02 +08:00
Jolly Zhao
15bc2548c1
fix logic issue: handlers.removePeer() is called twice. (#856)
* fix logic issue: handlers.removePeer() is called twice.

There is a logic issue which cause "Ethereum peer removal failed, err=peer not registered" occur quite often.

handler.runEthPeer set up a defer removePeer(). This is always called after a peer is disconnected.
However removePeer is also called by mulitple functions like downloader/fetcher.  After those kind of functions removePeer(), peer handler executes defer removePeer(). This makes removePeer() happened twice, and this is the reason we often see "Ethereum peer removal failed, err=peer not registered".

To solve this, removePeer only needs to hard Disconnect peer from networking layer. Then defer unregisterPeer() will do the cleanup task after then.

* fix: modify test function for close testing.

reference from go-thereum.

Co-authored-by: zjubfd <296179868@qq.com>
2022-04-24 14:24:07 +08:00
zjubfd
74ecbf271d
Merge pull request #850 from bnb-chain/develop
[R4R] Release v1.1.9
v1.1.9
2022-04-08 19:06:42 +08:00
WayToFuture
1aeadc143a
[R4R] prepare for release of v1.1.9 (#849)
* prepare release of v1.1.9

* prepare release of v1.1.9

* prepare release of v1.1.9

Co-authored-by: forcodedancing <liguo.fudan@gmail.com>
2022-04-08 15:59:40 +08:00
WayToFuture
343b315030
put error check to the correct location (#842)
Co-authored-by: forcodedancing <liguo.fudan@gmail.com>
2022-04-06 18:21:54 +08:00
Leon
12c5eb00a8
[R4R]Fix mining-prefetcher panic for empty transaction initial of txCurr(#843) 2022-04-06 15:28:01 +08:00
qinglin89
1ff4721434 fix:replace fake transaction with first peek for txCurr 2022-04-06 13:40:14 +08:00
zjubfd
05925da696
fix deadlock on miner module when failed to commit trie (#835) 2022-04-02 17:53:19 +08:00
zjubfd
f5a1c073bc
fix deadlock when failed to verify state root (#834) 2022-04-02 11:52:03 +08:00
flywukong
c57b02c293
change prefetch thread num (#830) 2022-04-01 21:56:23 +08:00
zjubfd
4598334a9a
disable diffsync when pipecommit is enabled (#820) 2022-03-30 11:22:00 +08:00
flywukong
cde35b0b36 add sharedStorage to the prefetcher of miner (#818)
* add sharedStorage to the prefetcher of miner

* fix miner prefetcher copy
2022-03-30 00:19:47 +08:00
WayToFuture
d8949871fb [R4R] state verification pipeline (#795)
* pipeline state verification

* update codes and add logs for debug

* refactor

* update and add logs

* refactor

* refactor

* remove unneeded logs

* fix a blocking issue

* fix sync issue when force kill

* remove logs

* refactor based on comments

* refactor based on comments

* refactor based on comments

* refactor based on comments

* refactor based on comments

* fix a deadlock issue

* fix merkle root mismatch issue during sync

* refactor based on review comments

* remove unnecessary code

* remove unnecessary code

* refactor based on review comments

* change based on comments

* refactor

* uew dummyRoot to replace emptyRoot

* add nil check

* add comments

* remove unneeded codes

* format comments

Co-authored-by: forcodedancing <liguo.fudan@gmail.com>
2022-03-30 00:19:47 +08:00
flywukong
4ff96978cb [R4R]add sharedStorage for prefetching to L1 (#792)
* add sharedStorage for prefetching to L1

* remote originStorage in stateObjects

* fix core

* fix bug of sync map

* remove read lock when get & set keys

* statedb copy use CopyWithSharedStorage

* reduce lock access

* fix comment

* avoid sharedPool effects on other modules

* remove  tryPreload

* fix comment

* fix var name

* fix lint

* fix L1 miss data && data condition

* fix comment
2022-03-30 00:19:47 +08:00
zjubfd
5f1aabeb38 fix race condition on preimage (#797) 2022-03-30 00:19:47 +08:00
zjubfd
58f3b2cd84 fix code of difflayer not assgin before return (#808) 2022-03-30 00:19:47 +08:00
Leon
91d7cd5fd2 [R4R]Prefetch state data on mining process (#803)
* perf(miner):add mining prefetcher

* fix ineffassign

* fix comments

* fix comments

* fix comments: add AsMessagePrefetch to skip nonce check

* fix comment:refactor check order of method Forward

* fix comments:rename variables

* fix comments: rename

* rename

* fix comments: refactor

* update
2022-03-30 00:19:47 +08:00
user
c0c6396509 fix pruner block tool bug, add some check logic 2022-03-25 15:22:21 +08:00
zjubfd
a50a05d624 merge with go-ethereum 1.1.5 2022-02-10 18:48:16 +08:00
Felix Lange
fb3a6528cf
go.mod: upgrade to github.com/karalabe/usb v0.0.2 (#24356)
This upgrade resolves a build issue on Android 7+ and removes
a build warning on macOS >= 12.0.
2022-02-08 19:58:27 +01:00
Martin Holst Swende
5a0d487c3b
signer/core: fix complex typed data sign (EIP712) (#24220)
Co-authored-by: specerxi <xhxpecer@gmail.com>
2022-02-08 14:40:00 +01:00
rjl493456442
2d20fed893
miner: avoid data race in miner (#24349) 2022-02-07 18:34:13 +01:00
Martin Holst Swende
6ce4670bc0
cmd/devp2p: implement snap protocol testing (#24276)
This also contains some changes to the protocol handler to
make the tests pass.
2022-02-04 15:24:32 +01:00
aaronbuchwald
aaca58a7a1
go.mode: bump graphql-go dependency to v1.3.0 (#24324) 2022-02-02 18:21:25 +02:00
Péter Szilágyi
1a7e345af4
Merge pull request #24328 from karalabe/uke-catalyst
cmd: auto-enable beacon APIs if TTD is defined
2022-02-02 18:15:38 +02:00
Péter Szilágyi
d99e759e76
cmd: auto-enable beacon APIs if TTD is defined 2022-02-02 17:57:34 +02:00
komika
afe344bcf3
accounts/abi/bind: improve WaitMined error handling (#24321)
This change makes it so WaitMined no longer logs an error when the receipt
is unavailable. It also changes the simulated backend to return NotFound for
unavailable receipts, just like ethclient does.
2022-02-01 16:42:51 +01:00