add muln(2), as was in the old code (#5829)

This commit is contained in:
Javier Viola
2024-03-19 08:30:22 -04:00
committed by GitHub
parent 95798b4636
commit b0ce49de18
+1 -1
View File
@@ -74,7 +74,7 @@ function babeOrAuraPeriod (api: DeriveApi): BN | undefined {
const period = api.consts.babe?.expectedBlockTime ||
// this will be present ones https://github.com/paritytech/polkadot-sdk/pull/3732 is merged
(api.consts['aura'] as unknown as Aura)?.slotDuration ||
api.consts.timestamp?.minimumPeriod;
api.consts.timestamp?.minimumPeriod.muln(2);
return !period.isZero() ? period : undefined;
}