From 77fddc7ed9c09fb6f8961bdcda2dd80f51ae1256 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Fri, 22 Apr 2022 00:49:02 -0400 Subject: [PATCH] Remove loading indicator for blocks-extras API --- backend/src/api/blocks.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backend/src/api/blocks.ts b/backend/src/api/blocks.ts index 4402f0d37..28ffdb0d5 100644 --- a/backend/src/api/blocks.ts +++ b/backend/src/api/blocks.ts @@ -377,8 +377,6 @@ class Blocks { // use it for the mining pages, and mining pages should not be available if indexing is turned off. // I'll need to fix it before we refactor the block(s) related pages try { - loadingIndicators.setProgress('blocks', 0); - let currentHeight = fromHeight !== undefined ? fromHeight : this.getCurrentBlockHeight(); const returnBlocks: BlockExtended[] = []; @@ -405,13 +403,11 @@ class Blocks { } returnBlocks.push(block); nextHash = block.previousblockhash; - loadingIndicators.setProgress('blocks', i / 10 * 100); currentHeight--; } return returnBlocks; } catch (e) { - loadingIndicators.setProgress('blocks', 100); throw e; } }