add muln(2), as was in the old code (#5829)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user