Fix pruning of canonical block if null block is encountered (#499)

This commit is contained in:
2023-12-28 15:07:12 +05:30
committed by GitHub
parent a6deed9c27
commit 33e4455f92
7 changed files with 25 additions and 19 deletions
+2 -2
View File
@@ -107,9 +107,9 @@ export class Indexer implements IndexerInterface {
return [];
}
async getAncestorAtDepth (blockHash: string, depth: number): Promise<string> {
async getAncestorAtHeight (blockHash: string, height: number): Promise<string> {
assert(blockHash);
assert(depth);
assert(height);
return '';
}