Set payoutTx as parent tx

This commit is contained in:
Oscar Guindzberg 2020-11-26 20:30:23 -03:00
parent 0b834a94f8
commit f2acf42edc
No known key found for this signature in database
GPG key ID: 209796BF2E1D4F75

View file

@ -1113,7 +1113,7 @@ public class TradeWalletService {
Transaction payoutTx = new Transaction(params);
Sha256Hash spendTxHash = Sha256Hash.wrap(depositTxHex);
payoutTx.addInput(new TransactionInput(params, depositTx, new byte[]{}, new TransactionOutPoint(params, 0, spendTxHash), msOutputValue));
payoutTx.addInput(new TransactionInput(params, payoutTx, new byte[]{}, new TransactionOutPoint(params, 0, spendTxHash), msOutputValue));
if (buyerPayoutAmount.isPositive()) {
payoutTx.addOutput(buyerPayoutAmount, Address.fromString(params, buyerAddressString));