benjamin202410
be36b32b3e
fix(consensus): fix config object not reference to same one and concurrency issues and refactor access pattern ( #2146 )
...
* bug fix for using same config object
* update
* change log level to trace on ispochswtich
---------
Co-authored-by: liam.lai <liam.lai@babylonchain.io>
2026-03-12 12:12:49 -07:00
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
b53fa6c6d9
skip gaslimit check on genesis block ( #1968 )
2026-02-09 16:06:16 +07: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
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
wit liu
66e96b507c
all: use 0x-prefix for Address type in log ( #1830 )
2025-12-07 15:36:36 +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
45f7597c97
engine_v2: verify gap number in UpdateMasternodes, close XFN-11 ( #1622 )
2025-11-03 16:15:48 +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
09b66ea8c4
engine_v2: check overflow first, close XFN-20 ( #1659 )
2025-11-03 12:55:57 +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
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
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
2ad225d6d1
engine_v2: fix unsynchronized QC verification Error, close XFN-09 ( #1609 )
2025-10-08 13:18:57 +08:00
Daniel Liu
3efe26df08
all: refactor so NewBlock, WithBody take types.Body #29482 ( #1605 )
2025-10-08 13:12:35 +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
99e2885b03
all: fix misspell ( #1510 )
...
Co-authored-by: wit <wit765765346@gmail>
2025-09-17 08:27:52 +08:00
wanwiset25
8ba050e99a
PR fixes
2025-09-16 17:03:58 +04:00
wanwiset25
5f9c4b3a25
engine_v2: save reward file during Seal for block miner
2025-09-14 14:50:47 +04: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
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
Daniel Liu
5b8c267122
trie: use trie.NewStackTrie instead of new(trie.Trie) ( #22246 )
2025-04-07 16:44:32 +08:00
Daniel Liu
a9b9f53701
core, eth, trie: add a prefix to contract code (21080)
2025-03-24 22:31:03 +08:00
wgr523
537dc5e6fb
Exp timeout ( #764 )
...
* feat: write duration calculation in countdown as
interface. add more inputs as function argument
* feat: ExpTimeoutDuration
* fix: three dots usage
* feat: refine exp duration
* feat: add exp timeout config and use it in countdown
* feat: remove const countdown
* feat: remove use of interface in countdown, use error
* fix: countdown reset timer problem
* fix: add default ExpTimeoutConfig for config
2025-01-19 23:04:03 +08:00
wanwiset25
44ac46f676
add local xdpos function
...
add readme
changes to support xdpos2 protocol from block 0
2025-01-01 22:06:09 -05:00
Daniel Liu
82ff8c19a0
all: remove uses of untyped golang-lru
2024-12-21 14:39:26 +08:00
benjamin202410
21b05243b6
Merge from master mining time patch ( #767 )
...
* merge from master
* close channel
* close channel
---------
Co-authored-by: liam.lai <liam.lai@us>
2024-12-19 01:17:29 -08:00
liam.icheng.lai
59a7eb1f9f
resolve conflict from master
2024-10-30 16:47:26 -07:00
benjamin202410
118ccd08d5
cherry pick epoch api from dev-upgrade ( #699 )
...
* cherry-pick-epoch-api
2024-10-29 01:36:22 -07:00
wgr523
71b9005f34
feat: add api xdpos_getBlockInfoByEpochNum ( #674 )
...
* feat: add api xdpos_getBlockInfoByEpochNum
* feat: add cache round2epochBlockInfo
* fix: round2epochBlockInfo contains round now
* feat: binary search in GetBlockByEpochNumber
* fix: change some code back, refine style
2024-10-28 00:14:30 -07:00
Daniel Liu
a79411fa06
all: fix staticcheck warning ST1005: incorrectly formatted error string
2024-10-24 09:48:20 +08:00
Liam Lai
22fc7d0710
fix conflict
2024-10-16 22:42:53 -07:00
Liam
e6190dd25f
fix timeout skip condition ( #659 )
...
Co-authored-by: 賴怡誠 <laiyicheng@makotos-MBP.lan>
2024-09-30 21:32:22 -07:00
Liam
9751e41dd5
Mainnet debug ( #655 )
...
* intro new timeout (#651 )
* intro new timeout
* correct comment
* disable ProcessForensics
* disable ProcessForensics
* change version
* enable periodicProfilingFlag
* fix: ignore old timeout msg
* fix: ignore old timeout msg including equal to the current round
* udpate version file
2024-09-30 20:05:14 -07:00
JukLee0ira
2d89951e5b
all: use errrors.New instead of empty fmt.Errorf
2024-06-14 19:19:21 +08:00
Wanwiset Peerapatanapokin
3fe54e28d3
remove uncle block handling ( #523 )
2024-04-23 09:44:49 +04:00
Liam
d76a573cf2
PPX-01 rename NextEpochMasterNodes to NextEpochCandidates ( #510 )
2024-03-31 07:27:13 +11:00
Banana-J
2504961a33
fix: replace all time.after with the time.newtimer ( #400 )
2024-01-27 21:01:24 +11:00
Wanwiset Peerapatanapokin
aaa246f60e
PDF-01 ( #397 )
...
* replace deprecated ioutil lib calls
* fix for FileInfo type required
* fix for ioutil.Discard
* fix .Discard
* fix for go-bindata generated files
2024-01-19 15:05:03 +04:00
Jianrong
e28b550a24
Add a new API to help debug when there are missed rounds
2023-12-28 15:13:05 +11:00
Liam
c7a42fd7c9
resolve sync issue by passing right round number ( #384 )
2023-12-27 22:14:13 +11:00
Liam
47bfdf7635
Move masternode in v2 config ( #372 )
...
* move masternode in v2 config
* update number to meet 7 vote for current setup
* add test
* update all failed test
* fix test
* remove comment
* remove comment
* fix test
2023-11-29 11:11:58 +11:00
Liam
c215316744
Make masternode dynamic ( #356 )
...
* make masternode dynamic
* fix all the tests
* remove cmt
* fix test again
2023-11-16 23:59:19 +11:00
Liam
24d02fe2b4
check v2 switch block is epoch number ( #342 )
...
* check v2 switch block is epoch number
* revert sync pr
* add test
* make default block number valid
* fix log
* fix test
2023-10-30 19:03:34 +11:00
Wanwiset Peerapatanapokin
a959bea092
add standbynodes in GetMasternodesByNumber similar way to subnet
2023-07-21 10:07:05 +04:00
Liam
2df16bbd37
merge waitPeriod into minePeriod ( #274 )
...
* merge waitperiod into mindePeriod
* merge waitperiod into mindePeriod
2023-05-31 23:40:50 +10:00