File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 3636 "pascalTime": 0,
3737 "pragueTime": 0,
3838 "lorentzTime": 0,
39+ "maxwellTime": 0,
3940 "blobSchedule": {
4041 "cancun": {
4142 "target": 3,
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ func init() {
3434const (
3535 indexPascalHF = 0
3636 indexLorentzHF = 1
37+ indexMaxwellHF = 2
3738)
3839
3940func 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
You can’t perform that action at this time.
0 commit comments