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
Daniel Liu
71e8e27f84
all: remove mongodb support in XDCx ( #1679 )
...
* all: remove SDK node
* cmd: remove XDCXDBEngineFlag
* cmd: remove XDCXDBConnectionUrlFlag
* cmd, XDCx: remove XDCXDBReplicaSetNameFlag
* XDCx: remove ConnectionUrl
* all: remove mongodb support
* cmd: remove XDCXEnabledFlag
2025-11-15 16:50:02 +05:30
Daniel Liu
0c96e76992
trie, XDCx, XDCxlending: not expose db in trie ( #1763 )
2025-11-15 16:49:47 +05:30
Daniel Liu
8f0ad36af6
core/state: get rid of field pointer in journal #30361 ( #1761 )
2025-11-15 16:48:52 +05:30
Daniel Liu
07e2609c25
common: improve variable names for ExtractAddressFromBytes(), close XFN-27 ( #1726 )
2025-11-15 16:48:01 +05:30
Daniel Liu
4716dc11af
cmd, internal: move func CheckExclusive() to package flags #31189 ( #1747 )
2025-11-15 16:47:38 +05:30
Daniel Liu
6d7c36bb8f
all: upgrade package version #30638 ( #1745 )
2025-11-15 16:46:54 +05:30
Daniel Liu
a75a1467ab
eth, internal/ethapi: remove order tx pool API ( #1743 )
2025-11-15 16:45:05 +05:30
Daniel Liu
650047c81e
consensus/XDPoS, params: fix some comments, close XFN-125 ( #1733 )
2025-11-15 16:44:39 +05:30
Daniel Liu
f24e68b015
consensus/XDPoS, eth: fix potential rpc.BlockNumber overflow, close XFN-69 ( #1735 )
2025-11-15 16:44:08 +05:30
Daniel Liu
0fc4c82350
Makefile, build: make test fast fail ( #1739 )
2025-11-15 16:42:35 +05:30
Daniel Liu
60868c9045
engines/engine_v2: refactor verifyQC by errgroup, close XFN-09 ( #1740 )
2025-11-15 16:42:15 +05:30
Daniel Liu
fc9ca96104
core/types, miner: remove unused parameter signers for NewTransactionsByPriceAndNonce() ( #1732 )
2025-11-14 22:37:20 +05:30
Daniel Liu
8cbbc1e83d
consensus, params: remove SkipV2Validation, close XFN-151 ( #1730 )
2025-11-14 21:53:05 +05:30
Daniel Liu
7a3ac998a3
eth: quick canceling block inserting when debug_setHead is invoked #32067 , close XFN-142 ( #1728 )
2025-11-14 21:52:35 +05:30
Daniel Liu
eef5242fa3
all: pre-allocate memory for slices and maps, close XFN-148 ( #1714 )
2025-11-14 20:13:36 +05:30
Daniel Liu
f65ecda9f1
cmd/puppeth: improve code ( #1716 )
2025-11-14 20:11:45 +05:30
wit liu
733b6e2b37
crypto: validate hash length in nocgo Sign #33104 ( #1773 )
2025-11-14 20:10:48 +05:30
wit liu
cbdde3fbf8
common: fix size comparison in StorageSize #33105 ( #1772 )
2025-11-14 20:08:01 +05:30
wit liu
a9db265d4e
core/state: fix bug about getting stable LogsHash result #33082 ( #1768 )
2025-11-14 20:07:32 +05:30