From c736e709b0a382c895ba2a2af2ad66069aacb519 Mon Sep 17 00:00:00 2001 From: jaypan Date: Sun, 25 Aug 2024 15:06:54 +0200 Subject: [PATCH] Add one more condition to make sure the parachain is async backing chain --- packages/core/src/utils/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/utils/index.ts b/packages/core/src/utils/index.ts index 9f0bb015..afbac4af 100644 --- a/packages/core/src/utils/index.ts +++ b/packages/core/src/utils/index.ts @@ -149,5 +149,8 @@ export const getSlotDuration = async (head: Block) => { ? getAuraSlotDuration(await head.wasm) : meta.consts.asyncBacking ? (meta.consts.asyncBacking.expectedBlockTime as any as BN).toNumber() - : 12_000 + : meta.consts.timestamp?.minimumPeriod && (meta.consts.timestamp.minimumPeriod as any as BN).toNumber() === 0 + // Async backing setting + ? 6_000 + : 12_000 }