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
94d0fceffe
all: use FinalizedBlockNumber instead of CommittedBlockNumber ( #1847 )
2025-12-11 16:19:51 +05:30
wgr523
a3282d4119
XFN-155: consensus V2 initial timer kick-off check ( #1849 )
...
* fix: consensus V2 initial timer kick-off check
* style: use Cmp for big.Int
2025-12-10 09:36:58 +08:00
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
Daniel Liu
348b7fa68f
consensus/XDPoS, core/rawdb: stop node if fail to store snapshot ( #1803 )
2025-12-08 15:07:22 +05:30
wit liu
d6309612fc
all: fix unnecessary whitespace ( #1800 )
2025-12-08 15:07:11 +05:30
wit liu
0ef3edf183
consensus: fix unused warnings ( #1815 )
2025-12-08 12:57:14 +05:30
wit liu
66e96b507c
all: use 0x-prefix for Address type in log ( #1830 )
2025-12-07 15:36:36 +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
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
6235de71ba
all: rework statedb utils ( #1785 )
2025-11-18 11:26:28 +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
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
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
60868c9045
engines/engine_v2: refactor verifyQC by errgroup, close XFN-09 ( #1740 )
2025-11-15 16:42:15 +05:30
Daniel Liu
8cbbc1e83d
consensus, params: remove SkipV2Validation, close XFN-151 ( #1730 )
2025-11-14 21:53:05 +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
wit liu
812abd4b83
consensus: delete unused functions rlpHash ( #1749 )
2025-11-14 20:05:20 +05:30
Daniel Liu
782a7ff5cb
all: fix typos, close XFN-23 ( #1725 )
2025-11-14 20:02:34 +05:30
wit liu
9155d354c9
tracers, consensus/clique: use maps.Clone #29616 ( #1755 )
2025-11-14 20:00:21 +05:30
wit liu
c82830d228
engines/engine_v2: use errgroup to handle goroutine error ( #1758 )
2025-11-14 19:59:43 +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
47952ac264
XDPoS/utils: use common.Address.Cmp for slices.SortFunc ( #1704 )
2025-11-14 16:29:16 +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
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
wit liu
4c22aa9d4d
consensus: fix misspell errors ( #1673 )
2025-11-04 11:43:29 +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
45f7597c97
engine_v2: verify gap number in UpdateMasternodes, close XFN-11 ( #1622 )
2025-11-03 16:15:48 +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
d8af7fa0d4
consensus/XDPoS: avoid use len as variable, close XFN-25 ( #1656 )
2025-11-03 12:56:33 +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
aecb6ff7dc
engine_v2: reject wrong signature earlier, close XFN-29 ( #1661 )
2025-11-03 12:51:56 +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
9d85990309
all: fix missing nil check, close XFN-114 ( #1695 )
2025-11-01 23:21:44 +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
Wanwiset Peerapatanapokin
b49f6cb0f2
consensus: verify header hash is same as input hash in getEpochSwitchInfo ( #1627 )
2025-10-28 09:30:38 +07:00
Wanwiset Peerapatanapokin
25a70e8770
consensus: skip gas limit verification for genesis block ( #1646 )
2025-10-28 08:30:36 +07:00
wit liu
79460e4bfb
all: fix whitespace error of golangci-lint, remove extra empty lines ( #1624 )
2025-10-19 14:42:12 +08:00
Wanwiset Peerapatanapokin
c95d258058
separate fullVerifies array into v1fullVerifies and v2fullVerifies ( #1618 )
2025-10-16 12:17:05 +04:00
Wanwiset Peerapatanapokin
6abb4f88da
consensus: Verify gaslimit bounds when accepting blocks ( #1619 )
...
* Verify gaslimit bounds when accepting blocks
* fix tests
2025-10-16 12:16:34 +04:00
Wanwiset Peerapatanapokin
e0c987f45a
impose size limit for DecodeBytesExtraFields ( #1637 )
2025-10-16 12:16:14 +04:00
wanwiset25
998153ebb1
optmize CompareSignersLists
2025-10-12 21:59:55 +04:00
Daniel Liu
0aa7ccb81e
consensus: check gas limit bounds in header, close XFN-07 ( #1616 )
2025-10-08 13:22:05 +08:00