From f54314337bf3da79783594aed62288c6cb9e3e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Molina=20Colmenero?= Date: Wed, 10 Apr 2024 14:59:36 +0200 Subject: [PATCH] query slot duration for block interval (#10456) --- packages/react-hooks/src/useBlockInterval.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-hooks/src/useBlockInterval.ts b/packages/react-hooks/src/useBlockInterval.ts index 5b4ba89d41..667182e304 100644 --- a/packages/react-hooks/src/useBlockInterval.ts +++ b/packages/react-hooks/src/useBlockInterval.ts @@ -30,7 +30,7 @@ function calcInterval (api: ApiPromise): BN { ? api.consts.timestamp.minimumPeriod.mul(BN_TWO) : api.query.parachainSystem // default guess for a parachain - ? DEFAULT_TIME.mul(BN_TWO) + ? api.consts.aura?.slotDuration ?? DEFAULT_TIME.mul(BN_TWO) // default guess for others : DEFAULT_TIME )