Commit Graph

13702 Commits

Author SHA1 Message Date
sunny2022da
6793e4b903
Revert "Implement 2 EIPS: limit and meter initcode and PUSH0 instructions (#1443)" (#1480)
This reverts commit b4f1cdffd55b7e27facec4d250009ad440d8ac74.

Revert because previous hardfork (berlin, london) need to be merged
first to avoid dependencies risk
2023-04-18 14:53:09 +08:00
Matus Kysel
3b4dda4aa9
Merge pull request #1357 from bnb-chain/eip4338-api
Integration API for EIP-4337 bundler with an L2 validator/sequencer
2023-04-18 08:09:32 +02:00
NathanBSC
d6b3a9a417
fix: improvements after testing fast finality (#1434) 2023-04-17 22:23:08 +08:00
Larry
52ff84fb63
release: prepare for release v1.1.23 (#1476) 2023-04-17 11:41:05 +08:00
Larry
2b0f56898d
fix: panic on using WaitGroup after it is freed (#1464) 2023-04-16 15:36:52 +08:00
Matus Kysel
39497e088a
ethapi: add basic test for sendcondtionaltrx 2023-04-14 15:23:43 +02:00
Matus Kysel
994daa1447
statedb: add function to get state trie root 2023-04-14 15:23:07 +02:00
Matus Kysel
f8c5f55652
ethapi: introduce tests for transaction options 2023-04-14 15:23:07 +02:00
Matus Kysel
26c69a15ba
internal/ethapi: cleaner designed and improved check 2023-04-14 15:23:07 +02:00
Matus Kysel
c0fd04db1e
internal/ethapi: implement API for EIP-4337 2023-04-14 15:23:07 +02:00
Leon
e4b6ab9ba3
cmd/faucet: clear reqs list when reorg to lower nonce (#1458) 2023-04-14 09:52:15 +08:00
sunny2022da
b4f1cdffd5
Implement 2 EIPS: limit and meter initcode and PUSH0 instructions (#1443)
* core/vm: deepcopy jumptable when enabling extra eips

When the interpreter is configured to use extra-eips,
this change makes it so that all the opcodes are deep-copied,
to prevent accidental modification of the 'base' jumptable.

Original-auther: yihuang <huang@crypto.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>

* core/vm: implement EIP-3860: Limit and meter initcode

Implementation of https://eips.ethereum.org/EIPS/eip-3860, limit and meter initcode.
Most of this change takes the go-ethereum implementation as reference.

Original-author: Andrei Maiboroda <andrei@ethereum.org>
Co-authored-by: lightclient@protonmail.com <lightclient@protonmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>

* core/vm: implement EIP-3855: PUSH0 instruction

* core/vm: Implement PUSH0

* Move PUSH0 to enable3855

* Add method doc

Original-author: Alex Beregszaszi <alex@rtfs.hu>

* core/vm: enable EIP-3855 (PUSH0) in Boneh

Original-author: Andrew Ashikhmin <34320705+yperbasis@users.noreply.github.com>

* core/vm: Fix issue of incorrect instructionSet used for jump_table

Also update the related test case for gas change.

* core/vm: fix test cases issues that not suitable for boneh

* core/vm: reuse ErrMaxInitCodeSizeExceeded as error message

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: lightclient@protonmail.com <lightclient@protonmail.com>
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2023-04-13 17:26:21 +08:00
realuncle
f7d15e34df
BEP-126: Introduce Fast Finality Mechanism (#936) 2023-04-10 18:36:45 +08:00
GalaIO
33426f2bd3
docker: upgrade alpine version & remove apks version; (#1430) 2023-04-10 16:00:17 +08:00
larry.lx
0cc7cb4bf0 Merge remote-tracking branch 'bnb-chain/master' into HEAD 2023-04-09 14:19:17 +08:00
Larry
9d6e53c457
release: prepare for release v1.1.22 (#1418) 2023-04-07 20:06:38 +08:00
NathanBSC
1093ad8bf9
fix: init-network with config.toml without setting TimeFormat (#1412) 2023-04-06 12:24:04 +08:00
Leon
f9f5cc2157
cmd/faucet: merge ipfaucet2 branch to develop (#1361)
* add ip ratelimit

* update

* update

* update explorer adddress

* updae recapcha

* remove binance

* cmd/faucet: fix conn to wrapped wsconn

* cmd/faucet: keystore updated to save and load one same addres once

* clean: remove btcd v0.20.1-beta and avoid to ambiguous import (#1)

* ci: fix truffle test (#1384)

---------

Co-authored-by: fudongbai <296179868@qq.com>
Co-authored-by: Nathan <galaxystroller@gmail.com>
2023-04-06 11:17:53 +08:00
Nicolas Gotchac
221ef7d80d
UT: fix some flaky tests (#1379)
* core/state: Remove prefetcher on stop
* core/blockchain: Wait for `triedb.Dereference` in `writeBlockWithState`
* eth/protocols/diff: Fix index mismatch in `TestGetDiffLayers`
2023-04-03 22:11:09 +08:00
GalaIO
bd76c258a4 Makefile: fix devtools install error; 2023-04-03 11:50:47 +08:00
dylanhuang
e4381a5d25 log: support custom time format configuration (#1401) 2023-04-03 11:44:28 +08:00
dylanhuang
3b547a9855
log: support custom time format configuration (#1401) 2023-04-03 10:22:49 +08:00
Leon
af7f0dd30b
consnesus/parlia: abort sealing when block in the same height has upd… (#1382) 2023-03-29 17:36:24 +08:00
Larry
75529530a2
fix: snapshot generation issue after chain reinit from a freezer (#1381) 2023-03-29 16:51:48 +08:00
Leon
ece84d4dcd
miner: no need to broadcast sidechain header mined by this validator (#1383) 2023-03-28 15:52:40 +08:00
Larry
6e06ed1087
Merge pull request #1390 from bnb-chain/develop
release: draft release v1.1.21
v1.1.21
2023-03-27 16:47:47 +08:00
Larry
ce609339ad
release: prepare for release v1.1.21 (#1395) 2023-03-27 09:48:59 +08:00
Larry
e8d2c8110c
upgrade: update the fork height of planck upgrade on mainnet (#1389) 2023-03-24 16:55:09 +08:00
Ersan YAKIT
ca20bc13f0
typo: fix Merkel to Merkle(#1120) 2023-03-24 11:03:56 +08:00
Leon
390bbe69c1
miner: add fallthrough for switch cases (#1377) 2023-03-24 10:42:18 +08:00
Larry
c9a679a383
fix: add some boundary check for security (#1354) 2023-03-24 09:51:11 +08:00
buddh0
9ffd7e139e clean: reduce useless logs 2023-03-23 11:09:53 +08:00
buddh0
a32a7b1cf7 tracer: enable withLog for TraceCall 2023-03-23 11:09:53 +08:00
Nathan
33590ce2e9
ci: fix truffle test (#1384) 2023-03-23 10:39:20 +08:00
Larry
fc4303c6c6
fix: crash on nil access when TxPool shutdown (#1353) (#1356) v1.1.20 2023-03-15 18:06:00 +08:00
Larry
b99ef2541f
fix: crash on nil access when TxPool shutdown (#1353) 2023-03-15 17:43:18 +08:00
Larry
8bd6ee887b
Merge pull request #1352 from brilliant-lx/remove_bep188
upgrade: remove BEP-188 from planck hardfork
2023-03-15 12:24:55 +08:00
Larry
7b6cebed7b
Merge pull request #1351 from brilliant-lx/remove_bep188
upgrade: remove BEP-188 from planck hardfork
2023-03-14 21:54:30 +08:00
larry.lx
9b4f10692b doc: remove BEP-188 from planck 2023-03-14 17:32:22 +08:00
larry.lx
6526a601cb Revert "parlia: consensus changes according to BEP of Early Broadcast (#1268)"
This reverts commit f5cb1378da878146a6b3402e7ce9f53783e4f977.
2023-03-14 17:31:21 +08:00
larry.lx
540adff8be Revert "parlia: miner changes for BEP-188 of Early Broadcast (#1269)"
This reverts commit c8a1535c74152c8e91eca2d4dfeb914ffb02ba18.
2023-03-14 17:22:49 +08:00
Larry
9c1d2836ae
Merge pull request #1350 from bnb-chain/develop
release: draft release v1.1.20
2023-03-14 12:29:22 +08:00
Larry
0d87a13c94
release: prepare for release v1.1.20 (#1349) 2023-03-14 10:40:26 +08:00
Eric
22645261bf
core/txpool: implement additional DoS defenses (#1348)
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2023-03-13 21:16:00 +08:00
Larry
36ccd334be
upgrade: update the fork height of planck upgrade on testnet (#1347) 2023-03-13 21:02:05 +08:00
Leon
c1fde0e86c
consensus: fix delete the 1st validator from snapshot.recents list (#1344)
* consensus: fix delete the 1st validator from snapshot.recents list

* consensus:fix uint sub error with negative
2023-03-13 11:10:16 +08:00
Roshan
c11431e4ea
upgrade: update system contracts' code of planck upgrade (#1343) 2023-03-10 11:20:39 +08:00
Larry
a476e315f2
rename: change the next upgrade name to Planck (#1339) 2023-03-07 09:59:03 +08:00
blxdyx
a956064629
clean: Remove support for Ethereum testnet (#1337) 2023-03-06 19:53:13 +08:00
yutianwu
a671641e75
sec: add proof ops check and key checker (#1333) 2023-03-06 08:38:39 +08:00