Skip to content

Commit

Permalink
update stats after if this is last item in the queue
Browse files Browse the repository at this point in the history
  • Loading branch information
jcramer committed May 23, 2019
1 parent caeffac commit 746fc8c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SlpTokenGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,13 @@ export class SlpTokenGraph implements TokenGraph {
// Update the confirmed/unconfirmed collections with token details
await self._manager.updateTxnCollections(txid, self._tokenDetails.tokenIdHex);

// Update token's statistics
await self.updateStatistics();

// zmq publish mempool notifications
if(!isParent)
await self._manager.publishZmqNotification(txid);

// Update token's statistics
if(self._graphUpdateQueue.pending === 1)
await self.updateStatistics();
})
}

Expand Down

0 comments on commit 746fc8c

Please sign in to comment.