Daniel Liu
ebbbdf2bff
core/state: move state log mechanism to a separate layer #30569 #30732 ( #1775 )
2025-12-16 07:33:19 +04:00
Daniel Liu
7f89733a09
eth/tracers, core: handle non-EVM tx tracing, fix #1863 ( #1865 )
...
* Detect non-EVM special transactions and construct a synthetic top level callFrame in OnTxStart.
* GetResult returns the virtual frame for non-EVM txs to preserve debug API compatibility.
* Add bounds checks in OnTxEnd and OnLog to avoid panics when callstack is empty.
* Add unit tests to verify the fix
2025-12-15 12:33:32 +04:00
Daniel Liu
94d0fceffe
all: use FinalizedBlockNumber instead of CommittedBlockNumber ( #1847 )
2025-12-11 16:19:51 +05:30
wgr523
1089f0b4fe
record total minted API v2 ( #1769 )
...
* feat: GetTokenSupply API, total minted and burned
* feat: token supply API finish burned token. rename minted record functions
* fix(api): handle edge case about minus 1 for epoch in token supply
* fix: check both total minted and burned before breaking loop
* style: modify minor style
* style: modify by comment and rebase code
* chore: modify test based on statedb_utils
2025-12-09 19:43:19 +08:00
wit liu
d6309612fc
all: fix unnecessary whitespace ( #1800 )
2025-12-08 15:07:11 +05:30
Daniel Liu
52f682065a
eth/ethconfig: update file gen_config.go ( #1822 )
2025-12-08 12:54:20 +05:30
Daniel Liu
4881c9445a
core, eth: for types with accurate size calcs, return uint64 #26046 ( #1791 )
2025-12-07 15:52:03 +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
b4b6328544
eth: use slices package for sorting #27490 ( #1702 )
2025-12-07 15:43:37 +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
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
Daniel Liu
ec08863ba0
all: use WaigGroup.Go() to simplify code ( #1699 )
2025-11-29 17:17:08 +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
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
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
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
b2664ec363
cmd, core, eth: disable prefetch by default, fix #1718 ( #1719 )
2025-11-16 11:22:48 +05:30
wit liu
0b2fe7d7b5
eth/downloader: fix incorrect waitgroup in test XTestDelivery #33047 ( #1711 )
2025-11-15 16:52:49 +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
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
f24e68b015
consensus/XDPoS, eth: fix potential rpc.BlockNumber overflow, close XFN-69 ( #1735 )
2025-11-15 16:44:08 +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
d5a03ab9e9
core, eth: fix overuse Of log.Crit, close XFN-102 ( #1648 )
...
* core: fix overuse Of `log.Crit`, close XFN-102
* eth: fix overuse Of `log.Crit`, close XFN-102
2025-11-14 16:28:36 +05:30
Daniel Liu
28a4f25166
cmd, core, eth, trie: track deleted nodes #22225 #25757 ( #1120 )
...
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-11-12 13:32:22 +05:30
Wanwiset Peerapatanapokin
44b7ea8081
consensus: add isEpochSwitch check to IsSigner, close XFN-90 ( #1654 )
...
use current header to check IsSigner instead of parent header
2025-11-10 21:54:51 +04:00
Daniel Liu
3af629078a
internal/ethapi: eth_simulateV1 #27720 ( #1606 )
2025-11-08 16:09:18 +05:30
Daniel Liu
13ed19bcf2
all: remove XDCx and XDCxlending public API, close XFN-74 XFN-134 ( #1675 )
...
* internal: remove XDCx public API
* XDCx, XDCxlending: remove api
* ethclient: remove SendOrderTransaction and SendLendingTransaction
* XDCx, XDCxlending: remove unused variables and function
* eth, internal/ethapi: remove function `OrderStats()`
2025-11-04 11:19:16 +05:30
Daniel Liu
17cd604541
eth/gasprice: use Sign() to compare with zero, close XFN-93 ( #1655 )
2025-11-03 12:56:53 +05:30
Daniel Liu
165d0f0838
eth: fix wrong judgement condition, close XFN-73 ( #1686 )
2025-11-03 12:48:51 +05:30
Daniel Liu
9d85990309
all: fix missing nil check, close XFN-114 ( #1695 )
2025-11-01 23:21:44 +05:30
Daniel Liu
2fd4030cb8
eth/gasprice: ensure cache purging goroutine terminates with subscription #31025 , close XFN-89 ( #1687 )
2025-11-01 12:05:24 +05:30
Daniel Liu
689ac1b12a
internal/ethapi: remove error return value of RPCMarshalBlock #27449 ( #1604 )
2025-10-31 09:57:48 +05:30
Daniel Liu
df9623dbe9
eth: split api.go into namespace based files #27263 ( #1601 )
2025-10-30 21:27:14 +05:30
Daniel Liu
12668feab8
eth/hooks: use slices.SortStableFunc in engine_v2
2025-10-30 14:54:54 +08:00
wit liu
79460e4bfb
all: fix whitespace error of golangci-lint, remove extra empty lines ( #1624 )
2025-10-19 14:42:12 +08:00
Daniel Liu
956767a41e
consensus/XDPoS: remove unused parameters in BlockConsensusVersion, close XFN-02 ( #1613 )
2025-10-08 13:19:45 +08:00
Daniel Liu
3efe26df08
all: refactor so NewBlock, WithBody take types.Body #29482 ( #1605 )
2025-10-08 13:12:35 +08:00
Daniel Liu
c74515fcca
core: persist bad blocks #21827 ( #1603 )
2025-10-08 13:10:22 +08:00
Daniel Liu
e48bda95c3
internal/ethapi: use correct signer when serving old blocks #23683 ( #1598 )
2025-10-08 12:54:57 +08:00
Daniel Liu
a311f01c7a
eth, internal: add getHeaderBy* APIs #19669 ( #1597 )
2025-10-08 12:52:56 +08:00
Daniel Liu
dce7b371a0
eth/gasestimator, internal/ethapi: move gas estimator out of rpc #28600 ( #1589 )
2025-10-08 12:47:45 +08:00
Daniel Liu
6e8d261e42
all: eliminate zero owner variables ( #1587 )
2025-10-08 12:38:32 +08:00
Daniel Liu
8938e27932
all: move err to the last position of return values ( #1581 )
2025-10-08 12:29:38 +08:00
wit liu
f709ef2edb
all: remove extra empty lines ( #1574 )
2025-10-08 12:25:10 +08:00
Daniel Liu
f46920b407
core, eth, internal: improve getBadBlocks to return full block rlp #16902 ( #1595 )
2025-09-26 19:02:13 +08:00