[bisq-network/bisq] Allow spending of unconfirmed BSQ change outputs (#2482)
Manfred Karrer
notifications at github.com
Fri Mar 1 22:48:31 UTC 2019
ManfredKarrer commented on this pull request.
> + // If no BTC output (unlikely but
+ // possible) the index points to the BTC output and then we detect that it is not part of our wallet.
+ //
+ List<TransactionOutput> outputs = tx.getOutputs();
+ if (changeOutputIndex > outputs.size() - 1)
+ return;
+
+ TransactionOutput change = outputs.get(changeOutputIndex);
+ if (!change.isMine(wallet))
+ return;
+
+ UnconfirmedTxOutput txOutput = UnconfirmedTxOutput.fromTransactionOutput(change);
+ if (unconfirmedBsqChangeOutputList.containsTxOutput(txOutput))
+ return;
+
+ log.error("We add txOutput {}", txOutput);
Was dev debugging... was remove in follow up commit
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/2482#discussion_r261782991
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190301/60f403e0/attachment.html>
More information about the bisq-github
mailing list