Skip to content

Commit

Permalink
fix(core-api): off by one error in transaction confirmations (#2645)
Browse files Browse the repository at this point in the history
  • Loading branch information
dated authored and faustbrian committed Jun 2, 2019
1 parent 6aa9b2f commit 34c1424
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const transformTransaction = model => {
signatures: data.signatures,
vendorField: data.vendorField,
asset: data.asset,
confirmations: model.block ? lastBlock.data.height - model.block.height : 0,
confirmations: model.block ? lastBlock.data.height - model.block.height + 1 : 0,
timestamp: formatTimestamp(data.timestamp),
};
};

0 comments on commit 34c1424

Please sign in to comment.