only print when outputs first confirm

This commit is contained in:
woodser 2021-10-28 15:13:41 -04:00
parent fd9201f8c6
commit 68e0bba6ac

View File

@ -730,7 +730,7 @@ public abstract class Trade implements Tradable, Model {
if (depositTxListener == null) return;
// TODO (woodser): remove this
if (output.getTx().isConfirmed() && (processModel.getMaker().getDepositTxHash().equals(output.getTx().getHash()) || processModel.getTaker().getDepositTxHash().equals(output.getTx().getHash()))) {
if (output.getTx().isConfirmed() && output.getTx().isLocked() && (processModel.getMaker().getDepositTxHash().equals(output.getTx().getHash()) || processModel.getTaker().getDepositTxHash().equals(output.getTx().getHash()))) {
System.out.println("Deposit output for tx " + output.getTx().getHash() + " is confirmed at height " + output.getTx().getHeight());
}