Remove loading indicator for blocks-extras API
This commit is contained in:
parent
e8d6872620
commit
77fddc7ed9
@ -377,8 +377,6 @@ class Blocks {
|
|||||||
// use it for the mining pages, and mining pages should not be available if indexing is turned off.
|
// 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
|
// I'll need to fix it before we refactor the block(s) related pages
|
||||||
try {
|
try {
|
||||||
loadingIndicators.setProgress('blocks', 0);
|
|
||||||
|
|
||||||
let currentHeight = fromHeight !== undefined ? fromHeight : this.getCurrentBlockHeight();
|
let currentHeight = fromHeight !== undefined ? fromHeight : this.getCurrentBlockHeight();
|
||||||
const returnBlocks: BlockExtended[] = [];
|
const returnBlocks: BlockExtended[] = [];
|
||||||
|
|
||||||
@ -405,13 +403,11 @@ class Blocks {
|
|||||||
}
|
}
|
||||||
returnBlocks.push(block);
|
returnBlocks.push(block);
|
||||||
nextHash = block.previousblockhash;
|
nextHash = block.previousblockhash;
|
||||||
loadingIndicators.setProgress('blocks', i / 10 * 100);
|
|
||||||
currentHeight--;
|
currentHeight--;
|
||||||
}
|
}
|
||||||
|
|
||||||
return returnBlocks;
|
return returnBlocks;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
loadingIndicators.setProgress('blocks', 100);
|
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user