Commit graph

14196 commits

Author SHA1 Message Date
Daniel Liu
df83610a30
cmd: fix flag variable name (#1958) 2026-01-19 14:05:55 +05:30
Daniel Liu
3742ed7f2f
core/vm: check if read-only in gas handlers #33281 (#1960) 2026-01-19 14:05:27 +05:30
Daniel Liu
fcd9685c87
core/vm: return early in selfdestruct gas calculation #33450 (#1959) 2026-01-19 14:04:58 +05:30
Daniel Liu
cb48e25ccf
core/txpool: declare address already reserved error #29095 (#1920) 2026-01-19 12:18:08 +05:30
Daniel Liu
f0b523d635
core/vm: remove a redundant zero check in opAddmod #29672 (#1954)
Co-authored-by: Aaron Chen <aaronchen.lisp@gmail.com>
2026-01-19 12:16:20 +05:30
Daniel Liu
bef85ec37b
console/prompt: use PromptInput in PromptConfirm method #33445 (#1953)
Co-authored-by: oooLowNeoNooo <ooolowneonooo@gmail.com>
2026-01-19 12:15:27 +05:30
Daniel Liu
b4cbf663a7
accounts/keystore: fix panic in decryptPreSaleKey #33602 (#1951)
Validate ciphertext length in decryptPreSaleKey, preventing runtime
panics on invalid input.

Co-authored-by: DeFi Junkie <deffie.jnkiee@gmail.com>
2026-01-19 12:15:03 +05:30
Daniel Liu
0d76b69517
accounts/abi: check presence of payable fallback or receive before proceeding with transfer #32374 (#1950)
remove todo

Co-authored-by: cui <cuiweixie@gmail.com>
2026-01-19 12:14:44 +05:30
Daniel Liu
f5d921bad2
accounts/abi/bind: fix data race in TestWaitDeployedCornerCases #32740 #33041 (#1949) 2026-01-19 12:13:50 +05:30
Daniel Liu
0c306686bb
rpc: fix limitedBuffer.Write to properly enforce size limit (#33545) (#1948)
Updated the `avail` calculation to correctly compute remaining capacity:
`buf.limit - len(buf.output)`, ensuring the buffer never exceeds its
configured limit regardless of how many times `Write()` is called.

Co-authored-by: Maxim Evtush <154841002+maximevtush@users.noreply.github.com>
2026-01-19 12:13:15 +05:30
Daniel Liu
03da570aca
crypto/ecies: use aes blocksize (#1946)
Co-authored-by: lightclient <lightclient@protonmail.com>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2026-01-19 11:25:15 +05:30
Daniel Liu
6aaad7b72f
core/vm: avoid escape to heap #33537 (#1944) 2026-01-19 11:25:04 +05:30
Daniel Liu
3e1f75eafb
core, eth, miner: 4844 blob transaction pool #26940 (#1911) 2026-01-19 11:24:01 +05:30
Daniel Liu
4a7eea65b9
trie: rework trie database #26813 (#1149)
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2026-01-19 11:23:51 +05:30
Daniel Liu
3e68f0e1d8
cmd/utils, eth: rename ApiBackend to APIBackend (#1955) 2026-01-16 17:27:48 +05:30
Daniel Liu
5f911680c0
ethclient: restore BlockReceipts support for BlockNumberOrHash objects #33242 (#1941) 2026-01-16 17:23:11 +05:30
Daniel Liu
2b10e68b10
params: fix undefined slices (#1956) 2026-01-16 19:42:42 +08:00
Daniel Liu
583338686f
all: expose block number information to statedb #27753 (#1936) 2026-01-16 15:55:04 +05:30
Daniel Liu
283d208fa3
common, core: use min to simplify code (#1939) 2026-01-16 15:53:39 +05:30
Daniel Liu
80db09613e
internal/ethapi: refactor RPC tx formatter #33582 (#1940) 2026-01-16 15:52:48 +05:30
Daniel Liu
e764d842da
core/txpool/legacypool: narrow down the scope of the variable #27471 (#1910) 2026-01-16 15:52:12 +05:30
Daniel Liu
6d4670a4ec
core, trie: refactor trie API #26995 (#1147)
In this PR, all TryXXX(e.g. TryGet) APIs of trie are renamed to XXX(e.g. Get) with an error returned.

The original XXX(e.g. Get) APIs are renamed to MustXXX(e.g. MustGet) and does not return any error -- they print a log output. A future PR will change the behaviour to panic on errorrs.

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2026-01-16 15:51:13 +05:30
Daniel Liu
b743f7c61f
core/state: print db failure in case of mismatched hash root #26870 (#1938) 2026-01-16 15:49:27 +05:30
Daniel Liu
7267895b82
params: improve function BuildConfigIndex() (#1935) 2026-01-16 15:49:03 +05:30
Daniel Liu
09e8b0b812
Dockerfile: remove unused docker files (#1933) 2026-01-16 15:48:31 +05:30
Daniel Liu
bc9bd0cbee
containers/docker: nuke the old docker containers #19164 (#1932) 2026-01-16 15:47:57 +05:30
Daniel Liu
84de57cadc
cicd: store git commit hash into docker image (#1931) 2026-01-16 15:47:16 +05:30
Daniel Liu
0c9fc2b882
params: fix V2 compare issue (#1926) 2026-01-16 15:46:28 +05:30
Daniel Liu
939225bd87
core/txpool: improve transaction validate (#1921) 2026-01-16 15:45:07 +05:30
Daniel Liu
86cbf4a897
core/txpool/legacypool: handle genesis state missing #28171 (#1919) 2026-01-16 15:43:43 +05:30
Daniel Liu
dee0e37564
core/txpool/legacypool: remove outdated tests #27662 (#1916) 2026-01-16 15:43:13 +05:30
Daniel Liu
b736bd6967
core/txpool: fix typos (#1915) 2026-01-16 15:42:04 +05:30
Daniel Liu
a7050de4f3
core/txpool: remove use of errors.Join function #27523 (#1914) 2026-01-13 16:51:57 +05:30
Daniel Liu
a7ddd8ac03
core/txpool/legacypool: remove redundant check for floatingRatio #27477 (#1913) 2026-01-13 16:51:21 +05:30
Daniel Liu
4addc980f4
core/txpool/legacypool: reheap the priced list if london fork not enabled #27481 (#1912) 2026-01-13 16:51:02 +05:30
Daniel Liu
d38d746773
core/txpool/legacypool: handle missing head in reset #27479 (#1909) 2026-01-13 16:49:33 +05:30
wit liu
71f929d990
build: upgrade golangci-lint to v2.7.2 (#1906) 2026-01-06 11:02:56 +05:30
wit liu
3147cf7835
ethapi: fix receiver name warning (#1908) 2026-01-06 11:01:48 +05:30
Daniel Liu
7684d88d3c
core/state, trie: remove Try prefix in Trie accessors #26975 (#1146)
This change renames StateTrie methods to remove the Try* prefix.

We added the Trie methods with prefix 'Try' a long time ago, working
around the problem that most existing methods of Trie did not return the
database error. This weird naming convention has persisted until now.

Co-authored-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2026-01-05 15:44:42 +05:30
Daniel Liu
b3d354a897
all: move main transaction pool into a subpool #27463 (#1890) 2026-01-05 15:43:50 +05:30
Daniel Liu
b6b1c4b779
internal/ethapi: fix recover sender of pending transaction #23765 (#1898) 2026-01-05 15:42:23 +05:30
Daniel Liu
51b99e40a8
miner: fix block number extraction for BlockSigner tx (#1894)
Previously, the code used binary.BigEndian.Uint64(data[8:40]), which incorrectly read the index and only extracted the highest 8 bytes of the 32-byte left-padded block number, resulting in wrong values (often zero).
Now, the code uses new(big.Int).SetBytes(data[4:36]).Uint64() to correctly extract the block number from the proper 32-byte field.
This change fixes both the incorrect index and the parsing logic, ensuring accurate block number extraction and correct validation for special transactions.
2026-01-05 15:41:43 +05:30
Daniel Liu
84ac794e22
consensus: fix missing block header error in vote verification, fix #1850 (#1891)
Previously, vote verification would log errors and fail when the referenced block header was not yet available locally, especially when nodes in the same round processed votes before receiving the block header. This commit changes the logic to defer verification and log at debug level if the header is missing, preventing unnecessary error logs and aligning with upstream geth behavior for out-of-order message arrival during consensus voting.
2026-01-05 15:40:49 +05:30
wit liu
2855f1b48c
core, consensus: use slice.Clip capacity to Simplify code (#1892) 2026-01-05 12:16:20 +05:30
Daniel Liu
fb89c95640
core/types: separate special transactions correctly (#1893)
- Refactor NewTransactionsByPriceAndNonce to properly filter and separate special transactions (IsSpecialTransaction)
- Remove account from txs map if it has no normal transactions left
- Update comments for clarity
2026-01-05 12:15:53 +05:30
Daniel Liu
adcc0d3652
miner: fix overflow when compare block number (#1895) 2026-01-05 12:15:04 +05:30
Daniel Liu
1886219894
core/txpool: use right type for field Txs in NewTxsEvent (#1897)
This commit updates the Txs field in NewTxsEvent to use []*types.Transaction instead of types.Transactions. This ensures type consistency for event broadcasting and handling, improving reliability of transaction propagation across the network. The change also removes unnecessary goroutine usage for txFeed.Send, making event delivery synchronous and safer for downstream consumers.
2026-01-05 12:12:28 +05:30
wit liu
3fb8b87a87
eth/filters: terminate pending tx subscription on error #32794 (#1901) 2026-01-04 17:31:29 +05:30
wit liu
acd3eb93e8
core: use max to simplify function CalcGasLimit (#1902) 2026-01-04 17:30:47 +05:30
wit liu
267222d4a5
all: fix goimports warning (#1903) 2026-01-04 17:22:26 +05:30