Daniel Liu
2eed6c057b
fix(consensus): hardening header verification #33860 ( #2071 )
2026-03-06 11:10:32 +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
Daniel Liu
934c8d0679
perf(all): use big.Int.Sign() to compare with 0 ( #1969 )
2026-02-05 11:45:44 +05:30
wit liu
d6309612fc
all: fix unnecessary whitespace ( #1800 )
2025-12-08 15:07:11 +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
8cbbc1e83d
consensus, params: remove SkipV2Validation, close XFN-151 ( #1730 )
2025-11-14 21:53:05 +05:30
wit liu
4c22aa9d4d
consensus: fix misspell errors ( #1673 )
2025-11-04 11:43:29 +05:30
Daniel Liu
aecb6ff7dc
engine_v2: reject wrong signature earlier, close XFN-29 ( #1661 )
2025-11-03 12:51:56 +05:30
Daniel Liu
d2706538e2
XDPoS/engines, core: fix non idiomatic "comma ok" boolean name, close XFN-126 ( #1690 )
2025-11-03 12:45:39 +05:30
Daniel Liu
9d85990309
all: fix missing nil check, close XFN-114 ( #1695 )
2025-11-01 23:21:44 +05:30
Wanwiset Peerapatanapokin
25a70e8770
consensus: skip gas limit verification for genesis block ( #1646 )
2025-10-28 08:30:36 +07: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
0aa7ccb81e
consensus: check gas limit bounds in header, close XFN-07 ( #1616 )
2025-10-08 13:22:05 +08:00
Daniel Liu
95f0bd2a4b
engine_v2: check minimum timestamp for the first v2 block, close XFN-16 ( #1614 )
2025-10-08 13:20:29 +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
Daniel Liu
4bbcd988b2
params: remove EIP150Hash from chainconfig ( #27087 )
2025-02-05 18:16:17 +08:00
Daniel Liu
28739d7863
common: remove usage of deprecated function ( #21610 )
2024-12-28 09:06:30 +08:00
Daniel Liu
82ff8c19a0
all: remove uses of untyped golang-lru
2024-12-21 14:39:26 +08:00
Daniel Liu
9b20ac785e
consensus/misc: move eip1559 into a package ( #27828 )
2024-11-01 11:36:53 +08:00
Daniel Liu
e18553b855
all: implement eip-1559 ( #22837 )
2024-11-01 11:36:52 +08:00
Daniel Liu
363d9784bf
engines/engine_v2: fix staticcheck warning S1009: should omit nil check
2024-10-31 21:51:53 +08:00
Banana-J
816dce9527
drop peer if received bad block data which does not include the validator field ( #494 )
...
Co-authored-by: wjrjerome <wjrjerome@babylonchain.io>
2024-03-23 09:18:21 +11:00
Liam
c7a42fd7c9
resolve sync issue by passing right round number ( #384 )
2023-12-27 22:14:13 +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
706292e1a1
Add debug msg and reset devnet config ( #270 )
...
* add debug msg
* remove all devnet config since we need to reset devnet
2023-05-24 14:52:58 +10:00
Jerome
2ca1d0461d
Fix issue when resync is not getting the right consensus config values ( #221 )
...
* Fix issue when resync is not getting the right consensus config values
* add test and fix log bug
* fix test
* delete temp file
Co-authored-by: Liam Lai <liam.icheng.lai@gmail.com>
2023-01-17 21:34:42 +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
90395f5423
add initial in verifyheader ( #112 )
2022-07-11 17:32:22 +02:00
Liam
1cac82825d
xin-176 use local masternode to verify signature ( #98 )
...
* use local masternode to verify signature
* refactor verify header
2022-06-05 12:53:50 +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
6c48d5be6c
Xin 181 178 ( #80 )
...
* add skeleton forensics
* remove duplicated penalty check in verify header
2022-04-10 09:40:32 +10:00
Liam
92857e50e5
xin-177 check penalty only on epoch switch block and Add Hook on initial ( #78 )
...
* check penalty only on epoch switch block
* skip calculate penalty on first v2 block
* clean code, its doing same thing
2022-04-02 22:59:39 -06:00
Jerome
b98005a8dd
Xin 166 ( #75 )
...
* typo and checkYourturnWithinFinalisedMasternodes func name to yourturn
* remove redundant code from verifyQC
* Verify QC to optionally pass parent header. This is used to help verifyHeaders
* move difficulty into its own file
2022-03-27 20:39:40 +11: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