Daniel Liu
2611f1dd9a
fix(all): fix typo foudation ( #2063 )
2026-02-28 18:00:55 +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
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
999ded17da
all: change chain head markers from block to header #26777 ( #1846 )
2025-12-16 07:36:51 +04: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
wit liu
d6309612fc
all: fix unnecessary whitespace ( #1800 )
2025-12-08 15:07:11 +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
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
f24e68b015
consensus/XDPoS, eth: fix potential rpc.BlockNumber overflow, close XFN-69 ( #1735 )
2025-11-15 16:44:08 +05:30
Daniel Liu
8cbbc1e83d
consensus, params: remove SkipV2Validation, close XFN-151 ( #1730 )
2025-11-14 21:53:05 +05:30
Daniel Liu
45f7597c97
engine_v2: verify gap number in UpdateMasternodes, close XFN-11 ( #1622 )
2025-11-03 16:15:48 +05:30
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
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
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
wit liu
07399bc552
all: fix misspell ( #1523 )
...
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 20:11:19 +08:00
wit liu
d9ae317a38
all: format golang files ( #1548 )
...
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 19:41:54 +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
Daniel Liu
34020969ff
all: simplify timestamps to uint64 #19372 ( #1318 )
2025-08-08 10:33:37 +08:00
benjamin202410
db9c3de1dc
add syncinfo pool ( #1236 )
...
* add syncinfo message into pool for process later
* add missing file back
---------
Co-authored-by: liam.lai <liam.lai@us>
2025-07-28 01:43:41 -07:00
Daniel Liu
85f08c7732
eth: skip VerifyHeader in traceBlock to fix #1185 ( #1265 )
2025-07-26 18:18:50 +08:00
wanwiset25
d34aa35ecc
fix test
2025-07-16 00:28:11 +07:00
wanwiset25
11ae49b35d
make XDPoS_getBlockInfoByEpochNum work with v1 epoch number
2025-07-15 02:30:23 +07:00
Daniel Liu
c46302cf65
all: fix invalid signer list on checkpoint block for trace api #1185 ( #1186 )
2025-07-12 06:56:30 +08:00
wgr523
4ec4a5390f
Consecutive penalty upgrade ( #1053 )
...
* feat: penalty upgrade, consecutive epochs penalty
can be unpenalized
* feat: use binary search inside penalty hook
* style: modification on style
* feat: in penaltyHook change startRange
* fix: add lastPenalty condition in HookPenalty V2
2025-06-25 01:12:56 -07:00
wgr523
e13265a7d7
record total minted into smart contract ( #1026 )
...
* feat: record total minted into smart contract
* feat: GetCurrentTotalMinted API
2025-06-16 02:31:33 -07:00
wgr523
6a38aa00aa
Reward float upgrade ( #940 )
...
* feat: use float type reward
* feat: add test of float reward
2025-04-16 02:03:41 -07:00
Daniel Liu
5b8c267122
trie: use trie.NewStackTrie instead of new(trie.Trie) ( #22246 )
2025-04-07 16:44:32 +08:00
benjamin202410
b8a9a8bfb1
Merge pull request #924 from XinFinOrg/update-reward-percapita
...
Update reward percapita
2025-03-28 23:52:33 -07:00
Daniel Liu
c73a0aa929
core/state: fix state iterator ( #19127 )
2025-03-28 22:34:59 +08:00
Gerui Wang
6bac06b1e7
feat: fixed reward per node (per capita)
2025-03-25 22:33:49 +08:00
Gerui Wang
84ae914350
feat: add TIPEpochHalving, better style
2025-03-25 22:16:35 +08:00
Daniel Liu
a9b9f53701
core, eth, trie: add a prefix to contract code (21080)
2025-03-24 22:31:03 +08:00
wgr523
c36e4d54c0
Upgrade reward 2.0 ( #865 )
...
* refactor: reward hook gets prepared for upgrade
* feat: new reward hook, config change, unit tests
* add missing code
* feat: filter penalty in reward. add unit test
* update constant and config
---------
Co-authored-by: liam.lai <liam.lai@us>
2025-03-02 02:44:34 -08:00
JukLee0ira
d6b136ed7c
consensus, internal, contracts: remove extra hash and string conversions ( #830 )
...
* consensus, internal: remove extra hash conversions
* contracts: remove extra string conversions
2025-02-07 13:59:07 +08:00
Daniel Liu
b6f3007af1
core: move genesis alloc types to core/types ( #29003 )
2025-01-24 16:54:12 +08:00
Daniel Liu
5b10b2441c
all: use T.TempDir to create temporary test directories ( #24633 )
2025-01-24 16:54:08 +08:00
Daniel Liu
6d17a42edb
all: replace t.Log(); t.FailNow() with t.Fatal() ( #19849 )
2025-01-24 16:18:29 +08:00
Daniel Liu
f542e463d3
accounts: implement simple checkpoint syncing ( #19543 )
2025-01-24 16:18:29 +08:00
liam.lai
77f9cc59ec
merge from dev-upgrade
2024-12-27 10:03:54 -08:00
benjamin202410
332380c889
fix only timeout round exists in next epoch ( #772 )
...
* fix only timeout round exists in next epoch
* bump version
---------
Co-authored-by: liam.lai <liam.lai@us>
2024-12-23 23:09:45 -08:00
liam.lai
00785b096f
fix tc cross epoch different masternode counts issue
2024-12-22 19:34:09 -08:00
benjamin202410
78331172f3
cherry pick vote test fix
2024-12-13 01:58:58 -08:00