Skip to content

Commit 684caec

Browse files
author
Naohiro Yoshida
committed
support maxwell
Signed-off-by: Naohiro Yoshida <naohiro.yoshida@datachain.jp>
1 parent dceb592 commit 684caec

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

e2e/chains/bsc/genesis/genesis-template.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"pascalTime": 0,
3737
"pragueTime": 0,
3838
"lorentzTime": 0,
39+
"maxwellTime": 0,
3940
"blobSchedule": {
4041
"cancun": {
4142
"target": 3,

module/fork_spec.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func init() {
3434
const (
3535
indexPascalHF = 0
3636
indexLorentzHF = 1
37+
indexMaxwellHF = 2
3738
)
3839

3940
func getForkSpecParams() []*ForkSpec {
@@ -54,6 +55,14 @@ func getForkSpecParams() []*ForkSpec {
5455
GasLimitBoundDivider: 1024,
5556
EnableHeaderMsec: true,
5657
},
58+
// Maxwell HF
59+
{
60+
AdditionalHeaderItemCount: 1,
61+
EpochLength: 1000,
62+
MaxTurnLength: 64,
63+
GasLimitBoundDivider: 1024,
64+
EnableHeaderMsec: true,
65+
},
5766
}
5867
}
5968

@@ -62,17 +71,20 @@ func GetForkParameters(network Network) []*ForkSpec {
6271
switch network {
6372
case Localnet:
6473
hardForks[indexPascalHF].HeightOrTimestamp = &ForkSpec_Height{Height: 0}
65-
hardForks[indexLorentzHF].HeightOrTimestamp = localLatestHF
74+
hardForks[indexLorentzHF].HeightOrTimestamp = &ForkSpec_Height{Height: 1}
75+
hardForks[indexMaxwellHF].HeightOrTimestamp = localLatestHF
6676
return hardForks
6777
case Testnet:
6878
hardForks[indexPascalHF].HeightOrTimestamp = &ForkSpec_Height{Height: 48576786}
6979
hardForks[indexLorentzHF].HeightOrTimestamp = &ForkSpec_Height{Height: 49791365}
80+
//TODO Maxwell
7081
return hardForks
7182
case Mainnet:
7283
hardForks[indexPascalHF].HeightOrTimestamp = &ForkSpec_Height{Height: 47618307}
7384
// https://bscscan.com/block/48773576
7485
// https://github.com/bnb-chain/bsc/releases/tag/v1.5.10
7586
hardForks[indexLorentzHF].HeightOrTimestamp = &ForkSpec_Height{Height: 48773576}
87+
//TODO Maxwell
7688
return hardForks
7789
}
7890
return nil

0 commit comments

Comments
 (0)