Commit graph

13763 commits

Author SHA1 Message Date
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
Daniel Liu
aecb6ff7dc
engine_v2: reject wrong signature earlier, close XFN-29 (#1661) 2025-11-03 12:51:56 +05:30
Daniel Liu
0f4d266b9b
internal/ethapi: fix missing proper error propagation, close XFN-118 (#1683) 2025-11-03 12:50:04 +05:30
Daniel Liu
737bfa45a6
internal/ethapi: prealloc map for the txpool api #32110, close XFN-106 (#1685) 2025-11-03 12:49:48 +05:30
Daniel Liu
165d0f0838
eth: fix wrong judgement condition, close XFN-73 (#1686) 2025-11-03 12:48:51 +05:30
Daniel Liu
7614a0ad9a
consensus/XDPoS: convert variables to const, close XFN-123 (#1688) 2025-11-03 12:46:35 +05:30
Daniel Liu
fc748cc52a
engine_v2: add comment for type SnapshotV2, close XFN-124 (#1689) 2025-11-03 12:46:05 +05:30
Daniel Liu
d2706538e2
XDPoS/engines, core: fix non idiomatic "comma ok" boolean name, close XFN-126 (#1690) 2025-11-03 12:45:39 +05:30
Daniel Liu
58c066f053
all: handle err from func rlp.Encode, close XFN-127 (#1692) 2025-11-03 12:45:19 +05:30
Daniel Liu
426d4a7a9f
core/txpool: fix name shadowing of filter parameter, close XFN-66 (#1694) 2025-11-03 12:44:43 +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
336d1f9f34
core: fix too many goroutines in InitSignerInTransactions, close XFN-75 (#1662) 2025-10-31 12:26:22 +05:30
Daniel Liu
a5e68b9c52
miner: not sleep if locks multiple mutex, close XFN-40 (#1639) 2025-10-31 12:24:32 +05:30
Daniel Liu
20ec25c0ca
engine_v2: fix data race when initial v2 parameters, close XFN-10 (#1617) 2025-10-31 11:33:06 +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
378d14f2fc
internal/ethapi: minor refactor in block serialization #27268 (#1600) 2025-10-30 20:26:18 +05:30
Anil Chinchawale
2652df3366
Merge pull request #1708 from gzliudan/fix-v2-sort
eth/hooks: use slices.SortStableFunc in engine_v2
2025-10-30 13:02:26 +05:30