@@ -312,8 +312,8 @@ var (
312
312
SlotsLimitedEpoch : EpochTBD , // epoch to enable HIP-16
313
313
CrossShardXferPrecompileEpoch : big .NewInt (1 ),
314
314
AllowlistEpoch : EpochTBD ,
315
- LeaderRotationInternalValidatorsEpoch : big .NewInt (5 ),
316
- LeaderRotationExternalValidatorsEpoch : big .NewInt (6 ),
315
+ LeaderRotationInternalValidatorsEpoch : big .NewInt (3 ),
316
+ LeaderRotationExternalValidatorsEpoch : big .NewInt (3 ),
317
317
LeaderRotationV2Epoch : EpochTBD ,
318
318
FeeCollectEpoch : big .NewInt (2 ),
319
319
ValidatorCodeFixEpoch : big .NewInt (2 ),
@@ -323,6 +323,7 @@ var (
323
323
MaxRateEpoch : EpochTBD ,
324
324
DevnetExternalEpoch : EpochTBD ,
325
325
TestnetExternalEpoch : EpochTBD ,
326
+ IsOneSecondEpoch : big .NewInt (4 ),
326
327
}
327
328
328
329
// AllProtocolChanges ...
@@ -374,6 +375,7 @@ var (
374
375
big .NewInt (0 ),
375
376
big .NewInt (0 ),
376
377
big .NewInt (0 ),
378
+ big .NewInt (0 ),
377
379
}
378
380
379
381
// TestChainConfig ...
@@ -425,6 +427,7 @@ var (
425
427
big .NewInt (0 ), // MaxRateEpoch
426
428
big .NewInt (0 ),
427
429
big .NewInt (0 ),
430
+ big .NewInt (0 ),
428
431
}
429
432
430
433
// TestRules ...
@@ -606,6 +609,8 @@ type ChainConfig struct {
606
609
// vote power feature https://github.com/harmony-one/harmony/pull/4683
607
610
// if crosslink are not sent for an entire epoch signed and toSign will be 0 and 0. when that happen, next epoch there will no shard 1 validator elected in the committee.
608
611
HIP32Epoch * big.Int `json:"hip32-epoch,omitempty"`
612
+
613
+ IsOneSecondEpoch * big.Int `json:"is-one-second-epoch,omitempty"`
609
614
}
610
615
611
616
// String implements the fmt.Stringer interface.
@@ -731,6 +736,10 @@ func (c *ChainConfig) IsTwoSeconds(epoch *big.Int) bool {
731
736
return isForked (c .TwoSecondsEpoch , epoch )
732
737
}
733
738
739
+ func (c * ChainConfig ) IsOneSecond (epoch * big.Int ) bool {
740
+ return isForked (c .IsOneSecondEpoch , epoch )
741
+ }
742
+
734
743
// IsSixtyPercent determines whether it is the epoch to reduce internal voting power to 60%
735
744
func (c * ChainConfig ) IsSixtyPercent (epoch * big.Int ) bool {
736
745
return isForked (c .SixtyPercentEpoch , epoch )
0 commit comments