Daniel Liu
bad1116a28
test(consensus,core): skip long-running tests in short mode ( #2129 )
2026-03-10 18:46:59 +05:30
Daniel Liu
2eed6c057b
fix(consensus): hardening header verification #33860 ( #2071 )
2026-03-06 11:10:32 +05:30
Daniel Liu
2611f1dd9a
fix(all): fix typo foudation ( #2063 )
2026-02-28 18:00:55 +04:00
Daniel Liu
ad0eea0f07
refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 ( #2046 )
...
The upstream libray has removed the assembly-based implementation of
keccak. We need to maintain our own library to avoid a peformance
regression.
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: lightclient <lightclient@protonmail.com>
2026-02-28 17:23:57 +04:00
Daniel Liu
9f720806e1
refactor(core): remove unnecessary parameters #30776 ( #2068 )
2026-02-20 13:51:30 +05:30
Wanwiset Peerapatanapokin
81416e008c
fix(consensus): use signer pubkey to check for unique signatures and optimize performance, close XFN-03 ( #1625 )
...
* use signer pubkey to check for unique signatures and optimize performance
* change waitgroup to errgroup
* optimize
* fix typo
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* format files
* after rebase new commits, refactor from snap.NextEpochCandidates to epochInfo.Masternodes
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-20 14:34:54 +07:00
Wanwiset Peerapatanapokin
f77d4e5668
test(consensus): add tests for getTCEpochInfo() ( #2045 )
...
* add tests for getTCEpochInfo()
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-20 14:34:29 +07:00
Wanwiset Peerapatanapokin
e324a78d94
fix(consensus): fix private chain initialization ( #1987 )
...
* revert: use masternodes from snapshot to verify vote
* fix underflow during chain initialization
* add previously removed test
* rename snapshot > snap for consistency
2026-02-19 01:47:03 +07:00
Daniel Liu
cfca45a7eb
refactor(all): rework EVM constructor #30745 ( #2065 )
2026-02-17 14:35:18 +05:30
Daniel Liu
81ac9cfb7e
fix(core): fix genesis error in #2019 ( #2034 )
2026-02-10 12:22:17 +08:00
Wanwiset Peerapatanapokin
b53fa6c6d9
skip gaslimit check on genesis block ( #1968 )
2026-02-09 16:06:16 +07:00
Wanwiset Peerapatanapokin
6120def776
useful logging ( #1986 )
2026-02-06 17:42:26 +07:00
Daniel Liu
872c1248f3
test(params): move params.V2TestsGasLimit to engine_v2_tests package ( #2028 )
...
- V2TestsGasLimit should be changed to const
- V2TestsGasLimit is only used by engine_v2_tests package
2026-02-06 14:44:54 +05:30
Daniel Liu
934c8d0679
perf(all): use big.Int.Sign() to compare with 0 ( #1969 )
2026-02-05 11:45:44 +05:30
Daniel Liu
e77ac510d0
all: replace Div/Mul with Rsh/Lsh if possible #29911 ( #1966 )
2026-01-29 11:31:58 +05:30
Daniel Liu
84ac794e22
consensus: fix missing block header error in vote verification, fix #1850 ( #1891 )
...
Previously, vote verification would log errors and fail when the referenced block header was not yet available locally, especially when nodes in the same round processed votes before receiving the block header. This commit changes the logic to defer verification and log at debug level if the header is missing, preventing unnecessary error logs and aligning with upstream geth behavior for out-of-order message arrival during consensus voting.
2026-01-05 15:40:49 +05:30
wit liu
2855f1b48c
core, consensus: use slice.Clip capacity to Simplify code ( #1892 )
2026-01-05 12:16:20 +05:30
Wanwiset Peerapatanapokin
9a61a4958d
consensus: verify timeout from epochInfo instead of snap.NextEpochCandidates, close XFN-62 ( #1850 )
...
* use epochInfo.Masternodes instead of snap.NextEpochCandidates
* remove missing snapshot test (now irrelevant)
* add masternodes length check in getEpochSwitchInfo
* get blockhash directly from vote object
2025-12-23 16:24:54 +05:30
wit liu
a83c43f240
all: use 0x-prefix string for type Address in log message ( #1874 )
2025-12-19 08:55:21 +04:00
Daniel Liu
999ded17da
all: change chain head markers from block to header #26777 ( #1846 )
2025-12-16 07:36:51 +04:00
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