Skip to content

Commit

Permalink
Client: Correct number of confirmations reported when a tx gets confi…
Browse files Browse the repository at this point in the history
…rmed
  • Loading branch information
sisou authored and styppo committed Oct 12, 2020
1 parent 8b5c5de commit ee768a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/generic/api/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ class Client {
let fs = [];
for (const {listener, addresses} of this._transactionListeners.values()) {
if (addresses.contains(tx.sender) || addresses.contains(tx.recipient)) {
details = details || new Client.TransactionDetails(tx, Client.TransactionState.CONFIRMED, block.hash(), block.height, (blockNow.height - block.height) + 1, block.timestamp);
details = details || new Client.TransactionDetails(tx, Client.TransactionState.CONFIRMED, block.hash(), block.height, (blockNow.height - block.height) + this._config.requiredBlockConfirmations, block.timestamp);
fs.push(async () => {
try {
await listener(details);
Expand Down

0 comments on commit ee768a1

Please sign in to comment.