mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-23 04:29:22 +00:00
release wallet lock processing payout tx
This commit is contained in:
parent
b179203dd2
commit
4ec5339e5d
1 changed files with 83 additions and 85 deletions
|
@ -143,9 +143,9 @@ public abstract class Trade implements Tradable, Model {
|
||||||
private final Object pollLock = new Object();
|
private final Object pollLock = new Object();
|
||||||
private final LongProperty walletHeight = new SimpleLongProperty(0);
|
private final LongProperty walletHeight = new SimpleLongProperty(0);
|
||||||
private MoneroWallet wallet;
|
private MoneroWallet wallet;
|
||||||
boolean wasWalletSynced;
|
private boolean wasWalletSynced;
|
||||||
boolean pollInProgress;
|
private boolean pollInProgress;
|
||||||
boolean restartInProgress;
|
private boolean restartInProgress;
|
||||||
private Subscription protocolErrorStateSubscription;
|
private Subscription protocolErrorStateSubscription;
|
||||||
private Subscription protocolErrorHeightSubscription;
|
private Subscription protocolErrorHeightSubscription;
|
||||||
|
|
||||||
|
@ -1127,7 +1127,6 @@ public abstract class Trade implements Tradable, Model {
|
||||||
* @param publish publishes the signed payout tx if true
|
* @param publish publishes the signed payout tx if true
|
||||||
*/
|
*/
|
||||||
public void processPayoutTx(String payoutTxHex, boolean sign, boolean publish) {
|
public void processPayoutTx(String payoutTxHex, boolean sign, boolean publish) {
|
||||||
synchronized (walletLock) {
|
|
||||||
log.info("Processing payout tx for {} {}", getClass().getSimpleName(), getId());
|
log.info("Processing payout tx for {} {}", getClass().getSimpleName(), getId());
|
||||||
|
|
||||||
// gather relevant info
|
// gather relevant info
|
||||||
|
@ -1212,7 +1211,6 @@ public abstract class Trade implements Tradable, Model {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
pollWallet();
|
pollWallet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue