Enforce BlockExtended use for block indexing - Unify /api/v1/block(s) API(s) response format
This commit is contained in:
@@ -43,7 +43,11 @@ class ChainTips {
|
||||
}
|
||||
}
|
||||
|
||||
public getOrphanedBlocksAtHeight(height: number): OrphanedBlock[] {
|
||||
public getOrphanedBlocksAtHeight(height: number | undefined): OrphanedBlock[] {
|
||||
if (height === undefined) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const orphans: OrphanedBlock[] = [];
|
||||
for (const block of this.orphanedBlocks) {
|
||||
if (block.height === height) {
|
||||
|
||||
Reference in New Issue
Block a user