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
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
eef5242fa3
all: pre-allocate memory for slices and maps, close XFN-148 ( #1714 )
2025-11-14 20:13:36 +05:30
Daniel Liu
d451580b37
miner, XDPoS, XDC: close chanels by owner, close XFN-41 ( #1641 )
2025-11-03 14:52:31 +05:30
Wanwiset Peerapatanapokin
c95d258058
separate fullVerifies array into v1fullVerifies and v2fullVerifies ( #1618 )
2025-10-16 12:17:05 +04: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
85f08c7732
eth: skip VerifyHeader in traceBlock to fix #1185 ( #1265 )
2025-07-26 18:18:50 +08: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
Daniel Liu
94b3ca1eeb
all: remove version field #25096 ( #970 )
2025-04-24 18:55:15 +08:00
Daniel Liu
4fb622bfd0
all: remove public field from rpc.API #25059 ( #969 )
2025-04-24 18:53:59 +08: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
Daniel Liu
a79411fa06
all: fix staticcheck warning ST1005: incorrectly formatted error string
2024-10-24 09:48:20 +08:00
wgr523
3593abe815
feat: GetEpochNumbersBetween API ( #606 )
...
* feat: GetEpochNumbersBetween API
* style: refine GetEpochNumbersBetween API
2024-09-02 00:11:12 -07:00
Daniel Liu
aa88078dd1
core/types: convert status type from uint to uint64 ( #16784 )
2024-06-20 15:52:32 +08: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
a54a645cda
fix: always check for error value and return nil, err where possible ( #426 )
...
Co-authored-by: wjrjerome <wjrjerome@babylonchain.io>
2024-02-11 20:32:24 +11:00
Jianrong
6740545358
change the API to be block num based
2023-12-28 15:13:05 +11:00
Jianrong
e28b550a24
Add a new API to help debug when there are missed rounds
2023-12-28 15:13:05 +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
Liam
938db0afcc
Bug Fix: V2 getSigner API ( #313 )
2023-08-20 10:56:08 +10:00
Liam
2df16bbd37
merge waitPeriod into minePeriod ( #274 )
...
* merge waitperiod into mindePeriod
* merge waitperiod into mindePeriod
2023-05-31 23:40:50 +10:00
wgr523
cd74061ac2
Extend masternode candidate ( #261 )
...
* V2 truncate MaxMasternodes from candidates after penalty,
V1 same as before
TestUpdateMultipleMasterNodes: test V2, in snapshot we have all candidates, but at epoch switch, we pick MaxMasternodes
* code looks better
2023-05-16 21:43:56 +08:00
Liam
c4f9a552e5
Multi config bug fix ( #216 )
...
* refactor multi config
remove pool cleaner
correct message and log level
2022-12-17 20:23:46 +08:00
Liam
6ffbd3e141
Xin 259 support multi v2 config ( #210 )
...
* update timeout period and waittime
* remove wrong comment
* update config for preparing test
2022-12-06 20:08:56 +08:00
Liam
2b3e059abf
xin-244 re-snyc blocks from v1 to v2 ( #186 )
...
* xin-244 re-snyc blocks from v1 to v2
* remove log
* correct log
* constant value
* remove comment
2022-10-04 23:33:13 +08:00
Liam
833f70bdb7
xin-203 fix wrong config hash and update v2 params on mainnet ( #109 )
...
* fix wrong config hash and update v2 params on mainnet
* update config and all the test
* hard code binary into code
* add default config for testing
* update test timestamp
2022-07-12 16:56:55 +02:00
Liam
0317e871d4
add initial function during load latest block from db ( #96 )
2022-05-29 11:28:08 +02:00
Jerome
7effc71547
allow forensics send msg to stats server ( #95 )
...
* allow forensics send msg to stats server
* add test for forensics reporting mechanism
2022-05-25 19:42:30 +10:00
Liam
a4b362ae9a
Xin 147 initial for both first v2 block and further, also introduce getExtraField function ( #64 )
...
* refactor initial and introduce getExtraField function
* add test for initial
* refactor snapshot
* initial first snapshot only
2022-03-08 20:34:11 +01:00
Jerome
e493ddfd6d
add verifyTC and verifyTimeoutMessage ( #63 )
...
* add verifyTC and verifyTimeoutMessage
* remove v2 func from adaptor
2022-03-02 09:17:57 +11:00
Jerome
97985fda85
move verify QC into verify header, fix broken tests etc ( #61 )
2022-02-27 10:25:26 +11:00
Jerome
431c870fa0
verify vote ( #50 )
...
* verify vote
* fix vote tests and add temporary solution for initialize
* remove the drop peer comment
2022-02-26 17:42:08 +11:00
Liam
0ab7bfbcbd
Merge pull request #58 from hash-laboratories-au/XIN-125-happy-path-fix
...
Xin 125 happy path fix
2022-02-21 02:51:48 +03:00
Liam Lai
491dc911f3
refactor big int compare and fix 1 bug on headers
2022-02-21 01:16:33 +03:00
Jianrong
c77a641638
add verify blockInfo function
2022-02-20 21:06:05 +11:00
Jianrong
cddeaf2db1
add v2 verify header
2022-02-19 19:36:32 +11:00
Jianrong
125f8a8957
Split initialise v2 into two scenarios
2022-02-19 16:17:27 +11:00
Liam
5a3acd173d
Xin-124 Deal with Block Time mine time ( #55 )
...
* add wait v2 period in miner
* add perido initial
* add mine and wait time
* update todo
* merge all xdc test config into 1
2022-02-13 11:40:47 +11:00
Liam
4424c7d01e
move config into code ( #54 )
...
* move config into code
* set devnet switch block number very high
* increase timeout and certThreshold for devnet config
Co-authored-by: Jianrong <wjrjerome@gmail.com>
2022-02-12 13:36:08 +11:00
Jerome
7cc2bef2d3
update adaptor for verify headers and fix vote handler to include +1 distance when checking rounds ( #48 )
2022-01-30 14:26:05 +11:00
Liam
646042a651
Xin 127 initial v2 function and snapshot ( #42 )
...
* initial v2 and v2 snapshot
* update based on pr feedback
* add test for initial v2 parameters
* remove comment
2022-01-20 18:27:51 +08:00
Liam
e72d4866df
Xin 118 refactor yourturn in v1 and miner ( #41 )
...
* refactor wait log into adaptor
* refactor v1 yourturn
2022-01-20 02:28:15 +11:00
Jerome
f8d3f9f8c6
Xin 113 is epoch switch ( #37 )
...
* add isEpochSwitch function and refactor utils
* fix broken first v2 epoch switch block
* use adaptor epoch switch function to determine v1 v2 epoch swtich block
* add test for the GetMasternodesByNumber and GetCurrentEpochSwitchBlock function
* add v2 test for isAuthroisedAddress
* Use GetCurrentEpochSwitchBlock in findNearestSignedBlock api
2022-01-14 21:38:38 +11:00
wgr523
5c326961ce
isEpochSwitch, getMasternodes ( #35 )
...
* isEpochSwitch, getMasternodes
* recursive getEpochSwitchInfo, getMasternodes
* more log, make getEpochSwitchInfo clearer
2022-01-08 00:17:21 +08:00
Jerome
ebbbf26127
add isAuthorisedAddress function for v2 consensus ( #34 )
...
* add isAuthorisedAddress function for v2 consensus
* update isAuthorisedAddress log messages
2022-01-03 17:06:04 +11:00