mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Merge pull request #4040 from sqrrm/log-delayedtx-at-trade-init
Log delayed payout tx bytes as soon as it's signed during trade init
This commit is contained in:
commit
6c8110aef8
2 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,7 @@ import bisq.core.trade.protocol.tasks.TradeTask;
|
|||
import bisq.core.util.Validator;
|
||||
|
||||
import bisq.common.taskrunner.TaskRunner;
|
||||
import bisq.common.util.Utilities;
|
||||
|
||||
import org.bitcoinj.core.Transaction;
|
||||
|
||||
|
@ -61,6 +62,7 @@ public class BuyerProcessDepositTxAndDelayedPayoutTxMessage extends TradeTask {
|
|||
byte[] delayedPayoutTxBytes = message.getDelayedPayoutTx();
|
||||
trade.applyDelayedPayoutTxBytes(delayedPayoutTxBytes);
|
||||
BtcWalletService.printTx("delayedPayoutTx received from peer", trade.getDelayedPayoutTx());
|
||||
log.info("DelayedPayoutTxBytes = {}", Utilities.bytesAsHexString(trade.getDelayedPayoutTxBytes()));
|
||||
|
||||
// update to the latest peer address of our peer if the message is correct
|
||||
trade.setTradingPeerNodeAddress(processModel.getTempTradingPeerNodeAddress());
|
||||
|
|
|
@ -23,6 +23,7 @@ import bisq.core.trade.Trade;
|
|||
import bisq.core.trade.protocol.tasks.TradeTask;
|
||||
|
||||
import bisq.common.taskrunner.TaskRunner;
|
||||
import bisq.common.util.Utilities;
|
||||
|
||||
import org.bitcoinj.core.Transaction;
|
||||
|
||||
|
@ -65,6 +66,7 @@ public class SellerFinalizesDelayedPayoutTx extends TradeTask {
|
|||
sellerSignature);
|
||||
|
||||
trade.applyDelayedPayoutTx(signedDelayedPayoutTx);
|
||||
log.info("DelayedPayoutTxBytes = {}", Utilities.bytesAsHexString(trade.getDelayedPayoutTxBytes()));
|
||||
|
||||
complete();
|
||||
} catch (Throwable t) {
|
||||
|
|
Loading…
Add table
Reference in a new issue