Commit graph

464 commits

Author SHA1 Message Date
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
Daniel Liu
8c101cd961
engine_v2: fix potential modulo by zero, close XFN-17 (#1615) 2025-10-08 13:21:33 +08:00
Daniel Liu
95f0bd2a4b
engine_v2: check minimum timestamp for the first v2 block, close XFN-16 (#1614) 2025-10-08 13:20:29 +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
2ad225d6d1
engine_v2: fix unsynchronized QC verification Error, close XFN-09 (#1609) 2025-10-08 13:18:57 +08:00
Daniel Liu
c7fb2e875d
consensus, contracts: check input length of ExtractValidatorsFromBytes, close XFN-14 (#1608) 2025-10-08 13:16:01 +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
8938e27932
all: move err to the last position of return values (#1581) 2025-10-08 12:29:38 +08:00
wit liu
d20f91057a
all: fix whitespace (#1572) 2025-09-24 07:58:40 +08:00
Wanwiset Peerapatanapokin
53e5601825
Merge pull request #1493 from XinFinOrg/fix-rewardhash
fix: XDPoS_v2 save reward file during Seal for block miner for v2 engine
2025-09-23 12:49:12 +04:00
wanwiset25
1935cb7f25 add more details in logging 2025-09-23 11:55:17 +04:00
wit liu
07399bc552
all: fix misspell (#1523)
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 20:11:19 +08:00
wit liu
7d5a03a46e
all: fix unnecessary conversion (#1527)
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 19:45:42 +08:00
wit liu
d9ae317a38
all: format golang files (#1548)
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 19:41:54 +08:00
wit liu
1a2c8ee180
all: fix govet (#1517)
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 18:55:13 +08:00
Wanwiset Peerapatanapokin
fd22d58cc1
Merge pull request #1257 from XinFinOrg/improve-consensus-logs
Improve consensus logs
2025-09-20 19:03:34 +04:00
wanwiset25
b4f79c0b14 improve logs 2025-09-20 18:12:11 +04:00
wgr523
5a6d25ec08
engine_v2: fix negative underflow in getBlockInfoByEpochNum (#1481) 2025-09-17 22:52:28 +08:00
wgr523
b8e5baa978
all: fix minted token recorded value is zero (#1480) 2025-09-17 22:50:52 +08:00
wit liu
99e2885b03
all: fix misspell (#1510)
Co-authored-by: wit <wit765765346@gmail>
2025-09-17 08:27:52 +08:00