wanwiset25
44ac46f676
add local xdpos function
...
add readme
changes to support xdpos2 protocol from block 0
2025-01-01 22:06:09 -05:00
benjamin202410
a8560300a4
fix vote test and optimize log ( #750 )
...
Co-authored-by: liam.lai <liam.lai@us>
2024-11-29 03:14:25 -08:00
liam.lai
809242223a
bug fix use right block to count vote theshold
2024-11-22 00:04:39 -08:00
Daniel Liu
a79411fa06
all: fix staticcheck warning ST1005: incorrectly formatted error string
2024-10-24 09:48:20 +08:00
JukLee0ira
2d89951e5b
all: use errrors.New instead of empty fmt.Errorf
2024-06-14 19:19:21 +08:00
Gary
04c3f483b8
fix: add verification of vote signer belonging to masternodes
2024-03-19 20:40:00 +08:00
Liam Lai
4446931e9e
change vote log level
2023-12-29 22:49:52 +11:00
Liam
b4bd070837
Improve log ( #368 )
...
* improve log
2023-11-26 22:04:08 +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
7b657f0c4e
API: getMasternode and getPoolStatus ( #258 )
...
* API: getMasternode and getPoolStatus
* fix test
2023-05-01 23:01:39 +10: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
f9c0c40515
change devnet switch block for large scale test ( #205 )
...
* change switch block
* use mainnet masternode
* update mining and timeout time
* add timer on round number
* remove bug code
2022-11-12 12:19:28 +08:00
Jerome
c710bd98a5
Xin-200 Vote Equivocation ( #111 ) ( #172 )
...
* Xin-200 Vote Equivocation (#111 )
* add vote same round detection
add test for vote same round detect
finish process equivocate (not finish report)
* finish vote equivocation report, refactor code (vote -> forensics)
* finish process equivocate and report, and test
* add return err
Co-authored-by: wgr523 <wgr523@gmail.com>
2022-08-13 11:50:56 +05:30
Liam
ac5096d692
upgrade log level and log message ( #102 )
2022-06-19 10:59:09 +02:00
Liam
ca6a645fca
refactor and improve log ( #92 )
...
* refactor and improve log
* fix conflict and test
2022-05-23 02:34:32 +01:00
Jerome
455cacc1b7
move XDC consensus types into core ( #93 )
2022-05-22 11:43:25 +10:00
Jerome
0241d40699
verify headers shall use parent block if not present in the chain ( #77 )
2022-04-01 00:11:04 -06:00
Jerome
cb67e8e26a
Xin 163 ( #76 )
...
* clean up the pool old round
* add unit test to cover the vote key format
* add gapNumber to the vote pool key
* fix race condition in pool
* remove verify gap number in vote handler
2022-04-01 14:59:16 +11:00
wgr523
b790b077c9
XIN-164 add GapNumber inside Vote, and tests ( #74 )
2022-03-25 23:22:24 +08:00
Jerome
d55229677d
verify header including validator ( #71 )
...
* verify header including validator
* re-structure v1 v2 tests
* remove unused test function
* add test to check coinbase and validator address matches
* refactor engine v2 to group private functions into same file
2022-03-20 21:14:35 +11:00