@@ -64,7 +64,7 @@ export function signingInfo (_instanceId: string, api: ApiInterfaceRx): (address
|
||||
map(([nonce, header]) => ({
|
||||
header,
|
||||
mortalLength: Math.min(
|
||||
FALLBACK_MAX_HASH_COUNT,
|
||||
api.consts.system?.blockHashCount?.toNumber() || FALLBACK_MAX_HASH_COUNT,
|
||||
MORTAL_PERIOD
|
||||
.div(api.consts.babe?.expectedBlockTime || api.consts.timestamp?.minimumPeriod.muln(2) || FALLBACK_PERIOD)
|
||||
.iadd(MAX_FINALITY_LAG)
|
||||
|
||||
Reference in New Issue
Block a user