Merge pull request #1563 from mempool/nymkappa/feature/remove-block-extras-loading-indicator
Remove loading indicator for blocks-extras API
This commit is contained in:
		
						commit
						58d361df06
					
				@ -389,8 +389,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[] = [];
 | 
			
		||||
 | 
			
		||||
@ -417,13 +415,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;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user