( api: ApiPromise, blockArray: number[], )
| 477 | } |
| 478 | |
| 479 | export async function fetchBlocksBatchesLight( |
| 480 | api: ApiPromise, |
| 481 | blockArray: number[], |
| 482 | ): Promise<IBlock<LightBlockContent>[]> { |
| 483 | return Promise.all(blockArray.map((height) => fetchLightBlock(api, height))); |
| 484 | } |
| 485 | |
| 486 | export function calcInterval(api: ApiPromise): BN { |
| 487 | return bnMin( |
nothing calls this directly
no test coverage detected