Commit graph

13781 commits

Author SHA1 Message Date
Daniel Liu
782a7ff5cb
all: fix typos, close XFN-23 (#1725) 2025-11-14 20:02:34 +05:30
wit liu
891a386a58
core/state: using maps.Clone #29365 (#1754) 2025-11-14 20:00:59 +05:30
wit liu
9155d354c9
tracers, consensus/clique: use maps.Clone #29616 (#1755) 2025-11-14 20:00:21 +05:30
wit liu
3107006ac6
swarm: nuke this leftover #30622 (#1757) 2025-11-14 20:00:03 +05:30
wit liu
c82830d228
engines/engine_v2: use errgroup to handle goroutine error (#1758) 2025-11-14 19:59:43 +05:30
wit liu
5b873ea522
core :use batch to write chain config (#1760) 2025-11-14 19:59:10 +05:30
Daniel Liu
1eec428928
blockchain: ensure state exists for prefetcher #20627, fix #1738 (#1742) 2025-11-14 19:58:35 +05:30
wit liu
b31cbfed40
miner: remove unused abs function (#1734) 2025-11-14 19:58:23 +05:30
Daniel Liu
bd3d30919d
XDPoS/utils: get pool size by key, close XFN-21 (#1666) 2025-11-14 16:29:58 +05:30
wit liu
4faefad7a5
p2p: remove unused ticketRefByWaitTime and nextTicketReg (#1709) 2025-11-14 16:29:39 +05:30
wit liu
47952ac264
XDPoS/utils: use common.Address.Cmp for slices.SortFunc (#1704) 2025-11-14 16:29:16 +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
2c40021f71
core/state, internal/ethapi: GetAccountInfo handle error properly, close XFN-79 (#1663) 2025-11-14 16:28:18 +05:30
Daniel Liu
39b8184f57
XDPoS/utils: must use NewPool() to create Pool, close XFN-13 (#1667) 2025-11-14 16:26:24 +05:30
Daniel Liu
956ebb2b02
core, docs: add solidity document, close XFN-68 (#1670) 2025-11-14 16:25:42 +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
Daniel Liu
d11e128322
trie: handle more batch commit errors in Database #25674 (#1118)
Co-authored-by: Amir Hossein <77993374+Kamandlou@users.noreply.github.com>
2025-11-12 10:17:58 +05:30
Daniel Liu
4bb925258d
params: fix type V2 not equal bug, close XFN-45 (#1737) 2025-11-12 06:32:43 +08:00
Wanwiset Peerapatanapokin
7aaa541db1
consensus: implement DeepCopy() in PoolObj, close XFN-04 (#1723)
* add DeepCopy() for PoolObj

* PoolObj: use deepcopies and optimize locks

* optimize code
2025-11-10 21:56:10 +04:00
Wanwiset Peerapatanapokin
845137849d
consensus: change os.Exit to return error (#1653) 2025-11-10 21:55:45 +04:00
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
wit liu
4c22aa9d4d
consensus: fix misspell errors (#1673) 2025-11-04 11:43:29 +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
8ca35720cd
ethclient: fix variable shadowing in FeeHistory(), close XFN-129 (#1720) 2025-11-04 11:18:28 +05:30
Daniel Liu
5a2495100d
consensus/XDPoS/utils: remove unused errors, close XFN-122 (#1721) 2025-11-04 11:18:04 +05:30
Daniel Liu
611668c237
internal/ethapi: improve ChaindbCompact() and ChaindbProperty() #19021 #19856 #28207, fix XFN-139 (#1722)
* internal/ethapi: clean up and properly abstract database accesses #19021

* internal/ethapi: fix debug.chaindbProperty #19856

* internal/ethapi: compact db missing key starts with 0xff #28207
2025-11-04 11:17:40 +05:30
Daniel Liu
851bdc45db
core: skip AddBalance for special-tx, close XFN-67 (#1629) 2025-11-04 11:16:26 +05:30
Daniel Liu
d319102837
miner: remove NewMinedBlockEvent, close XFN-50 (#1644) 2025-11-04 11:15:45 +05:30
Daniel Liu
5d25e016d2
params: check XDPoS V2 parameters, close XFN-45 (#1638)
* params: check XDPoS V2 parameters, close XFN-45

* params: remove reflect.DeepEqual

* params: pass non-nil block number to newCompatError
2025-11-04 11:15:26 +05:30
Daniel Liu
c3c3d03551
common: fix gas fee mismatch before TIPTRC21Fee, close XFN-51 (#1636) 2025-11-03 16:24:14 +05:30
Daniel Liu
815995e9e0
miner: fix inconsistent error evaluation, close XFN-60 (#1632) 2025-11-03 16:16:38 +05:30
Daniel Liu
0677ab40a2
miner: fix pop wrong tx from normal txs queue, close XFN-37 (#1623) 2025-11-03 16:16:10 +05:30
Daniel Liu
45f7597c97
engine_v2: verify gap number in UpdateMasternodes, close XFN-11 (#1622) 2025-11-03 16:15:48 +05:30
Daniel Liu
3cab0036ed
miner: fix deep copy in copyReceipts, close XFN-49 (#1620) 2025-11-03 16:14:27 +05:30
Daniel Liu
5732c4b11b
core/txpool: protect cache with mutex #27898, close XFN-65 (#1630) 2025-11-03 14:55:30 +05:30
Daniel Liu
7fad428a8f
core/types: reuse signtx #29152, close XFN-63 (#1631) 2025-11-03 14:54:31 +05:30
Daniel Liu
76aa15b7d0
miner: fix concurrent map access in Miner.HashRate, close XFN-52 (#1634) 2025-11-03 14:53:37 +05:30
Daniel Liu
f90a12d9f7
miner: fix inconsistent time unit, close XFN-59 (#1633) 2025-11-03 14:53:10 +05:30
Daniel Liu
d451580b37
miner, XDPoS, XDC: close chanels by owner, close XFN-41 (#1641) 2025-11-03 14:52:31 +05:30
Daniel Liu
5a26279c1c
engine_v2, params: fix unsynchronized reads of V2.CurrentConfig, close XFN-53 (#1642) 2025-11-03 14:51:54 +05:30
Daniel Liu
33c09226ba
params: implement String() method for ChainConfig #32766 (#1647) 2025-11-03 12:58:12 +05:30
Daniel Liu
96d39a83e1
core: fix variable shadowing, close XFN-104 (#1649) 2025-11-03 12:57:52 +05:30
Daniel Liu
96fbe67bf5
core: fix untracked goroutine in procFutureBlocks, close XFN-105 (#1650) 2025-11-03 12:57:32 +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
d8af7fa0d4
consensus/XDPoS: avoid use len as variable, close XFN-25 (#1656) 2025-11-03 12:56:33 +05:30
Daniel Liu
4aafff2826
common: improve function ExtractAddressFromBytes, close XFN-15 (#1658) 2025-11-03 12:56:14 +05:30
Daniel Liu
09b66ea8c4
engine_v2: check overflow first, close XFN-20 (#1659) 2025-11-03 12:55:57 +05:30
Daniel Liu
4acd3b05ee
XDPoS/utils: use strconv.ParseInt to convert int64, close XFN-24 (#1660) 2025-11-03 12:55:37 +05:30
Daniel Liu
717610c0d8
core: handle future block more elegantly, close XFN-101 (#1672) 2025-11-03 12:52:22 +05:30