aaronbuchwald
7237811928
core: fix typo in txpool ( #25149 )
...
Fix typo in txPool truncateQueue comment
2024-11-01 11:36:53 +08:00
zhaochonghe
dc94ad52f6
core: fix the order of address in queue ( #24908 )
...
reverse the order of address in queue
2024-11-01 11:36:53 +08:00
Emmanuel T Odeke
59bc3bfd09
eth/tracers/logger: remove unnecessary comparisons in accessList.equal ( #24663 )
...
This change removes extraneous/unnecessary checks for equality
when comparing 2 accessList values A and B. Given that we validate that
their lengths of A and B are equal, if so and if every element in A is
in B, reflexively every element in B is already in A. If that weren't
the case and an element g existed in A but not in B, that would mean
that there is an extra element and hence a mathematical contradiction.
Fixes #24658
2024-11-01 11:36:53 +08:00
Daniel Liu
7cb33cc57d
core/types: improve error for too short transaction / receipt encoding ( #24256 )
2024-11-01 11:36:53 +08:00
Daniel Liu
d1dc9e383c
core/statedb: always clear out access list when setting a new one ( #24515 )
2024-11-01 11:36:53 +08:00
Daniel Liu
8eaa9e2c3b
core/types: document JSON field name equivalents of DynamicFeeTx ( #24143 )
2024-11-01 11:36:53 +08:00
Daniel Liu
bdae20085a
core: ignore basefee when comparing with pool gasprice in txpool ( #24080 )
2024-11-01 11:36:53 +08:00
Daniel Liu
6feb71e5c8
core: check effective tip in txpool pricelimit validation ( #23855 )
2024-11-01 11:36:53 +08:00
Martin Holst Swende
81dff92ced
core: more efficient nonce-update in txpool ( #22231 )
...
* Adjust pending nonce update operation
Benchmark the speed of transaction insertion under multiple accounts
core: fix rebase issues + docstring
core: make benchmark test use sync:ed method
* core: address review comments
* core: add memreport to benchmark
Co-authored-by: WeiLoy <wei_loy@163.com>
2024-11-01 11:36:53 +08:00
Daniel Liu
a402cbf50e
core/types: add MarshalBinary, UnmarshalBinary for Receipt ( #22806 )
2024-11-01 11:36:53 +08:00
Daniel Liu
e5fb0b4d73
core: remove unused error from TxPool.Pending ( #23720 )
2024-11-01 11:36:53 +08:00
Daniel Liu
17b62319c0
core/types: copy tx recipient address ( #23376 )
2024-11-01 11:36:53 +08:00
Daniel Liu
e18e6111af
core: add change counter ( #23095 )
2024-11-01 11:36:53 +08:00
Daniel Liu
d850fc4081
core: only check sendernoeoa in non fake mode ( #23424 )
2024-11-01 11:36:53 +08:00
Daniel Liu
d6daac576d
core: check if sender is EOA ( #23303 )
2024-11-01 11:36:53 +08:00
Daniel Liu
206175fb43
all: remove term whitelist in comments and log messages ( #23294 )
2024-11-01 11:36:52 +08:00
Daniel Liu
62a70f0cde
internal/ethapi: fix panic in accesslist creation ( #23225 )
2024-11-01 11:36:52 +08:00
Daniel Liu
43a0cdf7ce
core: fix pre-check for account balance under EIP-1559 ( #23244 )
2024-11-01 11:36:52 +08:00
Daniel Liu
5b01b23af6
internal: get pending and queued transaction by address ( #22992 )
2024-11-01 11:36:52 +08:00
Daniel Liu
b02922fc53
core, internal: expose effectiveGasPrice in receipts ( #23050 )
2024-11-01 11:36:52 +08:00
Daniel Liu
dbdca11501
accounts/abi/bind: fix bounded contracts and sim backend for 1559 ( #23038 )
2024-11-01 11:36:52 +08:00
Daniel Liu
1cb1ba79d7
core: change baseFee into baseFeePerGas in genesis json ( #23039 )
2024-11-01 11:36:52 +08:00
Daniel Liu
05c11eb96e
core: make genesis parse baseFee correctly ( #23013 )
2024-11-01 11:36:52 +08:00
Daniel Liu
6b67327a4b
tests: update for London ( #22976 )
2024-11-01 11:36:52 +08:00
Daniel Liu
1c47afb286
core/vm/runtime: add function TestColdAccountAccessCost
2024-11-01 11:36:52 +08:00
Daniel Liu
c7d49072f1
core/vm: evm fix panic ( #23047 )
2024-11-01 11:36:52 +08:00
Daniel Liu
18bc355e89
core, internal: support various eth_call invocations post 1559 ( #23027 )
2024-11-01 11:36:52 +08:00
Daniel Liu
4c096de9b0
all: rename internal 1559 gas fields ( #23010 )
2024-11-01 11:36:52 +08:00
Daniel Liu
5a31888b19
core, eth, miner: enforce configured mining reward post 1559 too ( #22995 )
2024-11-01 11:36:52 +08:00
Daniel Liu
bfd1c0c9e0
core, eth, internal, les: RPC methods and fields for EIP 1559 ( #22964 )
2024-11-01 11:36:52 +08:00
Daniel Liu
4f0317cb1f
core: add new eip-1559 tx constraints ( #22970 )
2024-11-01 11:36:52 +08:00
Daniel Liu
f6a4769084
EIP-1559 tx pool support ( #22898 )
2024-11-01 11:36:52 +08:00
Daniel Liu
d88d2670e5
core: make txpool free space calculation more accurate ( #22933 )
2024-11-01 11:36:52 +08:00
Daniel Liu
684afd0b18
EIP-1559: miner changes ( #22896 )
2024-11-01 11:36:52 +08:00
Daniel Liu
4e7fd897d8
core: fix failing tests ( #22888 )
2024-11-01 11:36:52 +08:00
Daniel Liu
e18553b855
all: implement eip-1559 ( #22837 )
2024-11-01 11:36:52 +08:00
Daniel Liu
6a3b818069
core, params: implement EIP-3529 ( #22733 )
2024-11-01 11:36:52 +08:00
Martin Holst Swende
b5fe81f093
core/vm: make gas cost reporting to tracers correct ( #22702 )
...
Previously, the makeCallVariantGasCallEIP2929 charged the cold account access cost directly, leading to an incorrect gas cost passed to the tracer from the main execution loop.
This change still temporarily charges the cost (to allow for an accurate calculation of the available gas for the call), but then afterwards refunds it and instead returns the correct total gas cost to be then properly charged in the main loop.
2024-11-01 11:36:52 +08:00
Daniel Liu
6c77d63dc2
core/types: replace core.SetReceiptsData with receipts.DeriveFields
2024-11-01 11:36:52 +08:00
Daniel Liu
e561f2842e
core/types: drop type v4StoredReceiptRLP
2024-11-01 11:36:52 +08:00
Daniel Liu
b7154dd450
core: fix staticcheck warning S1006: use for {} for infinite loops
2024-10-31 16:49:56 +08:00
Daniel Liu
11285be830
all: fix staticcheck warning SA2002: must call T.Fatalf in same goroutine
2024-10-31 10:38:38 +08:00
Daniel Liu
6b6f0bd891
core, XDCxlending/lendingstate: fix staticcheck warning SA5001: must check error before rpcClient.Close()
2024-10-31 10:28:21 +08:00
Daniel Liu
371c3b6874
fix tautological condition: non-nil != nil
2024-10-31 09:01:12 +08:00
Daniel Liu
2306ceafb2
fix impossible condition: nil != nil
2024-10-31 09:01:12 +08:00
Daniel Liu
212daafe17
core: fix staticcheck warning SA6005: should use strings.EqualFold
2024-10-30 21:13:58 +08:00
Daniel Liu
181b23a767
core, XDCxlending/lendingstate: fix staticcheck warning S1002: omit comparison to bool constant
2024-10-30 21:02:41 +08:00
Daniel Liu
fbecb8c5a5
all: fix staticcheck warning ST1006: don't use generic name self
...
The name of a method’s receiver should be a reflection of its identity;
often a one or two letter abbreviation of its type suffices (such as
“c” or “cl” for “Client”). Don’t use generic names such as “me”, “this”
or “self”, identifiers typical of object-oriented languages that place
more emphasis on methods as opposed to functions. The name need not be
as descriptive as that of a method argument, as its role is obvious and
serves no documentary purpose. It can be very short as it will appear
on almost every line of every method of the type; familiarity admits
brevity. Be consistent, too: if you call the receiver “c” in one method,
don’t call it “cl” in another.
2024-10-25 21:30:54 +08:00
Daniel Liu
b68b9c64ea
Merge pull request #685 from gzliudan/emptyroot
...
all: use unified emptyRootHash and emptyCodeHash
2024-10-25 15:28:51 +08:00
Daniel Liu
87a6b5f4c3
Merge pull request #689 from gzliudan/fix-st1005
...
all: fix staticcheck warning ST1005
2024-10-25 15:28:07 +08:00