diff --git a/backend/src/api/blocks.ts b/backend/src/api/blocks.ts index 8c8272262..8c9fc86aa 100644 --- a/backend/src/api/blocks.ts +++ b/backend/src/api/blocks.ts @@ -677,7 +677,7 @@ class Blocks { } public async $getBlocks(fromHeight?: number, limit: number = 15): Promise { - let currentHeight = fromHeight !== undefined ? fromHeight : await blocksRepository.$mostRecentBlockHeight(); + let currentHeight = fromHeight !== undefined ? fromHeight : this.currentBlockHeight; const returnBlocks: BlockExtended[] = []; if (currentHeight < 0) {