Bisq transactions was listed in the wrong order.

fixes #566
This commit is contained in:
softsimon 2021-06-11 10:55:13 -05:00
parent cbc5d67f62
commit 95d3d0feaf
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -248,8 +248,8 @@ class Bisq {
const data: BisqBlocks = await this.jsonParsePool.exec(cacheData);
if (data.blocks && data.blocks.length !== this.allBlocks.length) {
this.allBlocks = data.blocks;
this.allBlocks.reverse();
this.blocks = this.allBlocks.filter((block) => block.txs.length > 0);
this.blocks.reverse();
this.latestBlockHeight = data.chainHeight;
const time = new Date().getTime() - start;
logger.debug('Bisq dump processed in ' + time + ' ms (worker thread)');