parent
cbc5d67f62
commit
95d3d0feaf
@ -248,8 +248,8 @@ class Bisq {
|
|||||||
const data: BisqBlocks = await this.jsonParsePool.exec(cacheData);
|
const data: BisqBlocks = await this.jsonParsePool.exec(cacheData);
|
||||||
if (data.blocks && data.blocks.length !== this.allBlocks.length) {
|
if (data.blocks && data.blocks.length !== this.allBlocks.length) {
|
||||||
this.allBlocks = data.blocks;
|
this.allBlocks = data.blocks;
|
||||||
|
this.allBlocks.reverse();
|
||||||
this.blocks = this.allBlocks.filter((block) => block.txs.length > 0);
|
this.blocks = this.allBlocks.filter((block) => block.txs.length > 0);
|
||||||
this.blocks.reverse();
|
|
||||||
this.latestBlockHeight = data.chainHeight;
|
this.latestBlockHeight = data.chainHeight;
|
||||||
const time = new Date().getTime() - start;
|
const time = new Date().getTime() - start;
|
||||||
logger.debug('Bisq dump processed in ' + time + ' ms (worker thread)');
|
logger.debug('Bisq dump processed in ' + time + ' ms (worker thread)');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user