Commit graph

13856 commits

Author SHA1 Message Date
Daniel Liu
eaaeea0cad
all: use slices.Sort() to sort strings (#1712) 2025-12-07 15:49:13 +05:30
Daniel Liu
1990e73b3c
core, eth/hooks, internal/ethapi: rename xdc sort package (#1707) 2025-12-07 15:47:49 +05:30
Daniel Liu
93d453c4c4
core/txpool: remove a redundant heap.Init #28910 (#1706) 2025-12-07 15:47:20 +05:30
Daniel Liu
35c905a131
p2p: use slices package for sorting #27494 (#1705) 2025-12-07 15:44:25 +05:30
Daniel Liu
8be96e4622
trie: use slices package for sorting #27496 (#1703) 2025-12-07 15:43:53 +05:30
Daniel Liu
b4b6328544
eth: use slices package for sorting #27490 (#1702) 2025-12-07 15:43:37 +05:30
Daniel Liu
62dbd3bceb
core: use slices package for sorting #27489 #27909 (#1701) 2025-12-07 15:43:24 +05:30
Daniel Liu
0ad629d484
p2p: use package slices to sort in PeersInfo #29957 (#1700) 2025-12-07 15:42:51 +05:30
Daniel Liu
c922f26d0c
all: replace strings.Split with more efficient strings.SplitSeq (#1698) 2025-12-07 15:42:23 +05:30
Daniel Liu
4d790e6c45
params: refactor Description() for ChainConfig (#1697) 2025-12-07 15:40:07 +05:30
wit liu
5ada9b8866
core: fix unused warnings (#1811) 2025-12-07 15:39:31 +05:30
Daniel Liu
940fd2adbd
core, trie: port changes from pbss #26637 (#1127) 2025-12-07 15:38:38 +05:30
wit liu
fd78323211
cmd/utils: deprecate flag enable-0x-prefix (#1829) 2025-12-07 15:36:52 +05:30
wit liu
66e96b507c
all: use 0x-prefix for Address type in log (#1830) 2025-12-07 15:36:36 +05:30
Daniel Liu
c6c5778632
params: define prague block #26481 #26880 (#1836) 2025-12-07 15:36:02 +05:30
Wanwiset Peerapatanapokin
e617598d1d
consensus: verify timeout from epochInfo instead of snap.NextEpochCandidates, close XFN-62 (#1628) 2025-12-06 15:05:49 +05:30
wit liu
fac866138b
cmd/utils: fix disabling cache preimages through config file #33330 (#1837) 2025-12-04 10:32:10 +05:30
Daniel Liu
4c098ddf1f
core/vm: fold EVMInterpreter into EVM #32352 (#1838) 2025-12-04 10:31:40 +05:30
wit liu
10ac141b76
eth: use consistent receiver name for downloadTester (#1797) 2025-12-04 08:04:05 +05:30
wit liu
dfaa7fc19f
internal: remove extra space before XDPoS entry (#1796) 2025-12-04 08:03:45 +05:30
wit liu
8dd497dd01
internal: deref gasUsed pointer in eth_simulate log #33192 (#1794) 2025-12-04 08:03:22 +05:30
Daniel Liu
af7e479ce9
consensus/XDPoS: use slices package for sorting (#1710) 2025-12-04 08:02:58 +05:30
Daniel Liu
ec08863ba0
all: use WaigGroup.Go() to simplify code (#1699) 2025-11-29 17:17:08 +05:30
Daniel Liu
e6b1fe9595
params: compare V2 between different versions, close XFN-45 (#1807) 2025-11-27 13:29:35 +05:30
Daniel Liu
25f07b1040
build, internal, Makefile: upgrade package build (#1746) 2025-11-24 12:51:09 +05:30
wit liu
c53b38e5fe
internal/jsre: pass only extra args to setTimeout/setInterval callbacks#32936 (#1782) 2025-11-24 11:00:44 +05:30
wit liu
b8feb5cffc
core/state: reduce one alloc #33024 (#1784) 2025-11-24 11:00:15 +05:30
wit liu
9287ad4089
rpc: remove unused vars #33012 (#1786) 2025-11-24 10:59:38 +05:30
wit liu
d5226ba29f
rpc: avoid unnecessary RST_STREAM, PING frames sent by client #33122 (#1788) 2025-11-24 10:59:19 +05:30
wit liu
ea179d287c
accounts/keystore: clear decrypted key after use#33090 (#1790) 2025-11-24 10:55:09 +05:30
Daniel Liu
627d77ae24
eth/hook: fix parameter mame mismatch in HookPenalties(), close XFN-141 (#1741) 2025-11-18 17:49:18 +05:30
Daniel Liu
6235de71ba
all: rework statedb utils (#1785) 2025-11-18 11:26:28 +05:30
Daniel Liu
0050bef807
all: rework trc21 (#1777) 2025-11-18 11:24:56 +05:30
Daniel Liu
f8553d5871
core, miner: fix inconsistent tx blacklist enforcement, close XFN-98 (#1674) 2025-11-18 11:24:08 +05:30
Daniel Liu
3b3aa9b013
core, trie: prepare for path-based trie storage #26603 (#1126)
This PR moves some trie-related db accessor methods to a different file, and also removes the schema type. Instead of the schema type, a string is used to distinguish between hashbased/pathbased db accessors.
This also moves some code from trie package to rawdb package.

This PR is intended to be a no-functionality-change prep PR for #25963 .

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-11-18 11:20:00 +05:30
Daniel Liu
d47260ea98
core, trie: clean up trie interface #26388 (#1125)
* all: cleanup trie interface

* eth, trie: address comments

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2025-11-18 11:19:27 +05:30
Daniel Liu
07328dcec4
core, eth, trie: abstract node scheme #25532 (#1123)
This PR introduces a node scheme abstraction. The interface is only implemented by `hashScheme` at the moment, but will be extended by `pathScheme` very soon.

Apart from that, a few changes are also included which is worth mentioning:

-  port the changes in the stacktrie, tracking the path prefix of nodes during commit
-  use ethdb.Database for constructing trie.Database. This is not necessary right now, but it is required for path-based used to open reverse diff freezer

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2025-11-17 11:25:08 +05:30
Daniel Liu
a4fbda2924
trie: wrap deletion in case trie.root is nil #26365 (#1124)
This PR fixes an error in trie commit. If the trie.root is nil, it can be two possible scenarios:

-  The trie was empty, and no change happens
-  The trie was non-empty and all nodes are dropped

For the latter one, we should collect the deletions and apply them into database(e.g. in PBSS).

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2025-11-17 11:24:11 +05:30
wit liu
39eb15531d
all: fix whitespace error of golangci-lint, remove extra empty lines (#1676) 2025-11-17 11:16:09 +05:30
Daniel Liu
1fa780768f
core/rawdb: remove unused freezerdb (#1748) 2025-11-17 11:15:06 +05:30
wit liu
e9bf36c7dc
internal/web3ext: remove unused console APIs #23208 (#1756) 2025-11-17 11:14:45 +05:30
Daniel Liu
73061af2c6
core/types: fix immutability guarantees in Block #27844, close XFN-82 (#1727) 2025-11-16 11:23:22 +05:30
Daniel Liu
b2664ec363
cmd, core, eth: disable prefetch by default, fix #1718 (#1719) 2025-11-16 11:22:48 +05:30
wit liu
999b775d8e
common: fix duration comparison in PrettyAge #33064 (#1776) 2025-11-15 16:53:17 +05:30
wit liu
0b2fe7d7b5
eth/downloader: fix incorrect waitgroup in test XTestDelivery #33047 (#1711) 2025-11-15 16:52:49 +05:30
wit liu
5dfa10977c
consensus, params: fix goimports formatting (#1671) 2025-11-15 16:52:30 +05:30
wit liu
0b43ddad75
core/types: prealloc map in HashDifference as in TxDifference #32946 (#1668) 2025-11-15 16:51:38 +05:30
Daniel Liu
e34bbe10c6
core: persist bad blocks #21827 #27489 (#1771) 2025-11-15 16:51:21 +05:30
Daniel Liu
de9ed732e2
cmd, eth: implement flag delete-all-bad-blocks (#1770) 2025-11-15 16:50:52 +05:30
Daniel Liu
c66f8f9fb2
core/state: fix SetStorage override behavior #30185 (#1764) 2025-11-15 16:50:26 +05:30