File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -505,7 +505,12 @@ impl<N: Network> Storage<N> {
505505 bail ! ( "Missing certificates for the previous round {previous_round} in storage {gc_log}" )
506506 }
507507 // Ensure the number of previous certificate IDs is at or below the number of committee members.
508- if batch_header. previous_certificate_ids ( ) . len ( ) > previous_committee_lookback. num_members ( ) {
508+ // As for the `test_network` clause, a more robust approach would be to set the
509+ // previous_committee_lookback appropriately when dev-on-prod is activated, or to only skip this
510+ // check right at the hotswap height.
511+ if !cfg ! ( feature = "test_network" )
512+ && batch_header. previous_certificate_ids ( ) . len ( ) > previous_committee_lookback. num_members ( )
513+ {
509514 bail ! ( "Too many previous certificates for round {round} {gc_log}" )
510515 }
511516 // Initialize a set of the previous authors.
You can’t perform that action at this time.
0 commit comments