mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Fix missing segwit case when sanitising preparedDepositTx
Make sure witness data is stripped from the seller's prepared deposit tx, in addition to ScriptSig data, to prevent the buyer from being able to publish it prematurely (before having signed the delayed payout tx).
This commit is contained in:
parent
77aab8a97c
commit
79fa219533
@ -44,6 +44,7 @@ public class SellerAsMakerSendsInputsForDepositTxResponse extends MakerSendsInpu
|
||||
|
||||
processModel.getTradeManager().requestPersistence();
|
||||
|
||||
return preparedDepositTx.bitcoinSerialize();
|
||||
// Make sure witnesses are removed as well before sending, to cover the segwit case.
|
||||
return preparedDepositTx.bitcoinSerialize(false);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user