File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1431,10 +1431,14 @@ impl StacksEpochExtension for StacksEpoch {
1431
1431
. iter ( )
1432
1432
. max ( )
1433
1433
. expect ( "FATAL: expect at least one epoch" ) ;
1434
- assert ! (
1435
- max_epoch. network_epoch as u32 <= PEER_NETWORK_EPOCH ,
1436
- "stacks-blockchain static network epoch should be greater than or equal to the max epoch's"
1437
- ) ;
1434
+ if max_epoch. epoch_id == StacksEpochId :: Epoch30 {
1435
+ assert ! ( PEER_NETWORK_EPOCH >= u32 :: from( PEER_VERSION_EPOCH_2_5 ) ) ;
1436
+ } else {
1437
+ assert ! (
1438
+ max_epoch. network_epoch as u32 <= PEER_NETWORK_EPOCH ,
1439
+ "stacks-blockchain static network epoch should be greater than or equal to the max epoch's"
1440
+ ) ;
1441
+ }
1438
1442
1439
1443
assert ! (
1440
1444
StacksEpochId :: latest( ) >= max_epoch. epoch_id,
You can’t perform that action at this time.
0 commit comments