mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-02-03 01:50:07 -05:00
only import multisig hex on dispute closed if wallet exists after sync
This commit is contained in:
parent
ed0f458bc4
commit
1809e34aaa
@ -251,15 +251,17 @@ public final class ArbitrationManager extends DisputeManager<ArbitrationDisputeL
|
|||||||
}
|
}
|
||||||
dispute.setDisputeResult(disputeResult);
|
dispute.setDisputeResult(disputeResult);
|
||||||
|
|
||||||
// import multisig hex
|
|
||||||
if (disputeClosedMessage.getUpdatedMultisigHex() != null) trade.getArbitrator().setUpdatedMultisigHex(disputeClosedMessage.getUpdatedMultisigHex());
|
|
||||||
trade.importMultisigHex();
|
|
||||||
|
|
||||||
// sync and save wallet
|
// sync and save wallet
|
||||||
if (!trade.isPayoutPublished()) {
|
if (!trade.isPayoutPublished()) {
|
||||||
trade.syncWallet();
|
trade.syncWallet();
|
||||||
trade.saveWallet();
|
trade.saveWallet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// import multisig hex
|
||||||
|
if (trade.walletExists()) {
|
||||||
|
if (disputeClosedMessage.getUpdatedMultisigHex() != null) trade.getArbitrator().setUpdatedMultisigHex(disputeClosedMessage.getUpdatedMultisigHex());
|
||||||
|
trade.importMultisigHex();
|
||||||
|
}
|
||||||
|
|
||||||
// attempt to sign and publish dispute payout tx if given and not already published
|
// attempt to sign and publish dispute payout tx if given and not already published
|
||||||
if (disputeClosedMessage.getUnsignedPayoutTxHex() != null && !trade.isPayoutPublished()) {
|
if (disputeClosedMessage.getUnsignedPayoutTxHex() != null && !trade.isPayoutPublished()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user