Skip to content

Commit

Permalink
Set delayedPayoutTxBytes when setting delayedPayoutTx
Browse files Browse the repository at this point in the history
Fixes bisq-network#3473

The delayedPayoutTx is not committed to the wallet as long it is not
published. The seller who creates the delayedPayoutTx has not stored the
delayedPayoutTxBytes which caused a nullpointer after restart.
  • Loading branch information
chimp1984 committed Oct 26, 2019
1 parent 05135a5 commit 8dafbde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/bisq/core/trade/Trade.java
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ public Transaction getDepositTx() {

public void applyDelayedPayoutTx(Transaction delayedPayoutTx) {
this.delayedPayoutTx = delayedPayoutTx;
this.delayedPayoutTxBytes = delayedPayoutTx.bitcoinSerialize();
persist();
}

Expand Down

0 comments on commit 8dafbde

Please sign in to comment.