zhiqiangxu
d89d7ebdec
core: initialize `gasRemaining` with `=` instead of `+=` ( #29149 )
...
initialize gasRemaining with = instead of +=
2024-03-05 09:47:58 +01:00
Vie
9b3ceb2137
core/types: reuse signtx ( #29152 )
...
* core/types: reuse signtx
* core/types: inline signtx
2024-03-05 09:33:52 +02:00
Domino Valdano
5d5b384efd
.mailmap: remove invalid email address ( #29163 )
2024-03-04 21:58:25 +01:00
Andrei Silviu Dragnea
19607d1a10
eth/tracers: Fix prestateTracer pre nonce on contract creation ( #29099 )
...
The prestateTracer was reporting an inaccurate nonce for the contract being created in
post EIP-158 transactions. Correct nonce is 0, due to the issue nonce was being reported as 1.
2024-03-04 20:21:43 +01:00
rjl493456442
ca473b81cb
core: use finalized block as the chain freeze indicator ( #28683 )
...
* core: use finalized block as the chain freeze indicator
* core/rawdb: use max(finality, head-90k) as chain freezing threshold
* core/rawdb: fix tests
* core/rawdb: fix lint
* core/rawdb: address comments from peter
* core/rawdb: fix typo
2024-03-04 16:25:53 +02:00
Felix Lange
a97d622588
cmd/devp2p: fix commandHasFlag ( #29091 )
...
It got broken in some update of the cli library, and thus bootnodes weren't
being configured automatically for some of the discovery commands.
2024-03-04 14:07:41 +01:00
psogv0308
35cebc1687
triedb/pathdb: changed the test code to check for verifying state ( #29150 )
...
Co-authored-by: this-is-iron <iron@superblock.co>
2024-03-04 11:03:53 +01:00
buddho
679a27a2b3
all: use EmptyUncleHash, EmptyCodeHash instead of raw value ( #29134 )
2024-03-04 10:31:18 +01:00
cui
5a1e8a6547
core: delete unused ErrMaxInitCodeSizeExceeded ( #29062 )
2024-03-04 10:30:15 +01:00
yzb
b408b3e5fe
accounts/abi: delete duplicate error check ( #29136 )
2024-03-04 10:24:24 +01:00
yzb
a732ad0364
p2p: remove unused argument 'flags' ( #29132 )
2024-03-04 10:16:05 +01:00
Undefinedor
00905f7dc4
all: remove redundant import aliases ( #29144 )
2024-03-02 22:42:50 +02:00
Péter Szilágyi
0b1438c3df
eth: make transaction propagation paths in the network deterministic ( #29034 )
...
* eth: make transaction propagation paths in the network deterministic
* eth: avoid potential division by 0
* eth: make tx propagation dependent on local node id too
* eth: fix review comments
2024-03-02 22:39:22 +02:00
Sina Mahmoodi
0a2f33946b
eth/catalyst: update simulated beacon for cancun ( #28829 )
...
* eth/catalyst: update simulated beacon for cancun
* validate blob hashes
* compute hashes from commitment
* fix beacon root and payload version
* check commitment conversion
* fix random attr
* flip dev to cancun
2024-02-29 14:17:32 +02:00
Péter Szilágyi
865e1e9f57
cmd/utils, core/rawdb, triedb/pathdb: flip hash to path scheme ( #29108 )
...
* cmd/utils, core/rawdb, triedb/pathdb: flip hash to path scheme
* graphql: run tests in hash mode as the chain maker needs it
2024-02-29 12:40:59 +02:00
yzb
db4cf69166
all: replace fmt.Errorf() with errors.New() if no param required ( #29126 )
...
replace-fmt-errorf
Co-authored-by: yzb@example.cn <yzb@example.cn>
2024-02-29 11:56:46 +02:00
Ng Wei Han
28d55218f7
cmd/geth: parseDumpConfig should not return closed db ( #29100 )
...
* cmd: parseDumpConfig should not return closed db
* fix lint
2024-02-29 11:56:17 +02:00
cui fliter
dbc27a199f
all: fix function names in docs ( #29128 )
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2024-02-29 11:29:06 +02:00
lightclient
1883438964
eth/catalyst: return invalid payload attributes instead of invalid parms for bad fcu payload ( #29115 )
2024-02-28 19:59:16 +01:00
buddho
9986a69c25
internal/ethapi: pass in accesslist in test ( #29089 )
...
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2024-02-28 18:38:21 +01:00
rjl493456442
5bae14f9df
triedb/pathdb: fix panic in recoverable ( #29107 )
...
* triedb/pathdb: fix panic in recoverable
* triedb/pathdb: add todo
* triedb/pathdb: rename
* triedb/pathdb: rename
2024-02-28 14:40:28 +02:00
rjl493456442
49623bd469
core, triedb/pathdb: calculate the size for batch pre-allocation ( #29106 )
...
* core, triedb/pathdb: calculate the size for batch pre-allocation
* triedb/pathdb: address comment
2024-02-28 14:23:52 +02:00
Péter Szilágyi
170fcd80c6
params: being major version bump cycle
2024-02-28 10:01:52 +02:00
cui
02d77c98f9
core: using math.MaxUint64 instead of 0xffffffffffffffff ( #29094 )
2024-02-28 15:25:12 +08:00
Péter Szilágyi
57d2b552c7
params: begin v1.13.15 cycle
2024-02-27 13:53:30 +02:00
Péter Szilágyi
9038ba6942
params: release Geth v1.13.14
2024-02-27 13:50:30 +02:00
Roberto Bayardo
51b479e564
core/txpool: elevate the 'already reserved' error into a constant ( #29095 )
...
declare the 'already reserved' error in errors.go
2024-02-27 13:27:50 +02:00
Andrei Silviu Dragnea
5a0f468f8c
eth/tracers: Fix callTracer logs on onlyTopCall == true ( #29068 )
2024-02-27 10:29:12 +01:00
Delweng
45a272c7b9
core/txpool: no need to log loud rotate if no local txs ( #29083 )
...
* core/txpool: no need to run rotate if no local txs
Signed-off-by: jsvisa <delweng@gmail.com>
* Revert "core/txpool: no need to run rotate if no local txs"
This reverts commit 17fab17388
.
Signed-off-by: jsvisa <delweng@gmail.com>
* use Debug if todo is empty
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
2024-02-26 18:34:45 +02:00
Péter Szilágyi
63aaac8100
core/txpool/blobpool: reduce default database cap for rollout ( #29090 )
...
xcore/txpool/blobpool: reduce default database cap for rollout
2024-02-26 14:27:56 +02:00
cui
c1f59b98f6
eth/catalyst: remove variable in tx conversion loop ( #29076 )
2024-02-26 13:22:13 +01:00
Justin Dhillon
821d70240d
cmd/clef: add spaces in README.md table ( #29077 )
...
Add space after links in so they are clickable in vscode.
2024-02-26 11:03:59 +01:00
maskpp
8bca93e82c
internal/ethapi: pass blob hashes to gas estimation ( #29085 )
2024-02-26 11:02:18 +01:00
cui
edffacca8f
eth/catalyst: enable some commented-out testcases ( #29073 )
2024-02-26 10:59:03 +01:00
Qt
26724fc2aa
p2p, log, rpc: use errors.New to replace fmt.Errorf with no parameters ( #29074 )
2024-02-26 11:25:35 +02:00
Roberto Bayardo
32d4d6e616
core/txpool: reject blob txs with blob fee cap below the minimum ( #29081 )
...
* make blobpool reject blob transactions with fee below the minimum
* core/txpool: some minot nitpick polishes and unified error formats
* core/txpool: do less big.Int constructions with the min blob cap
---------
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-02-26 11:06:52 +02:00
Haotian
93c541ad56
eth/catalyst: fix wrong error message of payloadV2 after cancun ( #29049 )
...
* eth/catalyst: the same error format
Signed-off-by: tmelhao <tmelhao@gmail.com>
* eth/catalyst: wrong error message for payloadV2 post-cancun
Signed-off-by: tmelhao <tmelhao@gmail.com>
* eth/catalyst: parentBeaconBlockRoot -> parentBlockBeaconRoot
Signed-off-by: tmelhao <tmelhao@gmail.com>
* apply commit review
Signed-off-by: tmelhao <tmelhao@gmail.com>
---------
Signed-off-by: tmelhao <tmelhao@gmail.com>
Co-authored-by: tmelhao <tmelhao@gmail.com>
2024-02-23 10:57:47 +02:00
colin
b87b9b4533
internal/ethapi:fix zero rpc gas cap in eth_createAccessList ( #28846 )
...
This PR enhances eth_createAccessList RPC call to support scenarios where the node is launched with an unlimited gas cap (--rpc.gascap 0). The eth_createAccessList RPC call returns failure if user doesn't explicitly set a gas limit.
2024-02-22 16:35:23 +01:00
ArtificialPB
e47a7c22c4
internal/ethapi: use overriden baseFee for gasPrice ( #29051 )
...
eth_call and debug_traceCall allow users to override various block fields, among them base fee. However the overriden base fee was not considered for computing the effective gas price of that message, and instead base fee of the base block was used. This has been fixed in this commit.
2024-02-22 14:39:22 +01:00
Felix Lange
b590cae892
params: begin v1.13.14 release cycle
2024-02-21 15:49:50 +01:00
Felix Lange
3b4ede7444
params: release go-ethereum v1.13.13 stable
2024-02-21 15:44:02 +01:00
Sina Mahmoodi
b47cf8fe1d
internal/ethapi: fix defaults for blob fields ( #29037 )
...
Co-authored-by: Martin HS <martin@swende.se>
2024-02-21 12:46:32 +01:00
colin
b9ca38b735
core/txpool: fix typo ( #29036 )
...
* fix typos
* address comments
2024-02-21 10:00:01 +02:00
Haotian
79e340fb12
params: add cancun upgrade banner ( #29042 )
...
params: add cancun banner
Signed-off-by: tmelhao <tmelhao@gmail.com>
Co-authored-by: tmelhao <tmelhao@gmail.com>
2024-02-21 09:59:21 +02:00
buddho
bba3fa9af9
core,eth,internal: fix typo ( #29024 )
2024-02-20 19:42:48 +08:00
buddho
7f5e96dc6c
core/txpool: fix typo ( #29031 )
2024-02-20 12:08:56 +02:00
Péter Szilágyi
f4852b8ddc
core/txpool, eth, miner: retrieve plain and blob txs separately ( #29026 )
...
* core/txpool, eth, miner: retrieve plain and blob txs separately
* core/txpool: fix typo, no farming
* miner: farm all the typos
Co-authored-by: Martin HS <martin@swende.se>
---------
Co-authored-by: Martin HS <martin@swende.se>
2024-02-20 11:37:23 +02:00
Martin HS
ac0ff04460
core/vm, params: ensure order of forks, prevent overflow ( #29023 )
...
This PR fixes an overflow which can could happen if inconsistent blockchain rules were configured. Additionally, it tries to prevent such inconsistencies from occurring by making sure that merge cannot be enabled unless previous fork(s) are also enabled.
2024-02-19 16:29:59 +01:00
Péter Szilágyi
6fb0d0992b
core/txpool, miner: speed up blob pool pending retrievals ( #29008 )
...
* core/txpool, miner: speed up blob pool pending retrievals
* miner: fix test merge issue
* eth: same same
* core/txpool/blobpool: speed up blobtx creation in benchmark a bit
* core/txpool/blobpool: fix linter
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
2024-02-19 15:59:40 +02:00
cui
5d984796af
core: using math.MaxUint64 instead of 0xffffffffffffffff ( #29022 )
2024-02-19 13:03:58 +01:00