mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-18 16:55:20 +00:00
import multisig hex off main thread on payment sent message
This commit is contained in:
parent
e4b80ef14b
commit
3a66c9cd24
1 changed files with 8 additions and 6 deletions
|
@ -61,12 +61,14 @@ public class ProcessPaymentSentMessage extends TradeTask {
|
||||||
if (trade.isSeller()) trade.decryptPeerPaymentAccountPayload(message.getPaymentAccountKey());
|
if (trade.isSeller()) trade.decryptPeerPaymentAccountPayload(message.getPaymentAccountKey());
|
||||||
trade.requestPersistence();
|
trade.requestPersistence();
|
||||||
|
|
||||||
// try to import multisig hex (retry later)
|
// try to import multisig hex off main thread (retry later)
|
||||||
|
new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
trade.importMultisigHex();
|
trade.importMultisigHex();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
}).start();
|
||||||
|
|
||||||
// update state
|
// update state
|
||||||
trade.advanceState(Trade.State.BUYER_SENT_PAYMENT_SENT_MSG);
|
trade.advanceState(Trade.State.BUYER_SENT_PAYMENT_SENT_MSG);
|
||||||
|
|
Loading…
Reference in a new issue