Add more requestPersistence calls

This commit is contained in:
chimp1984 2020-11-18 12:51:53 -05:00
parent 255460e5d5
commit 6fb36dcd41
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
4 changed files with 8 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public class BuyerAsTakerSendsDepositTxMessage extends TradeTask {
} }
); );
} else { } else {
log.error("processModel.getDepositTx() = " + processModel.getDepositTx()); log.error("processModel.getDepositTx() = {}", processModel.getDepositTx());
failed("DepositTx is null"); failed("DepositTx is null");
} }
} catch (Throwable t) { } catch (Throwable t) {

View File

@ -48,6 +48,8 @@ public class SellerAsMakerFinalizesDepositTx extends TradeTask {
processModel.setDepositTx(myDepositTx); processModel.setDepositTx(myDepositTx);
processModel.getTradeManager().requestPersistence();
complete(); complete();
} catch (Throwable t) { } catch (Throwable t) {
failed(t); failed(t);

View File

@ -41,6 +41,9 @@ public class SellerAsMakerSendsInputsForDepositTxResponse extends MakerSendsInpu
// before we have received his signature for the delayed payout tx. // before we have received his signature for the delayed payout tx.
input.setScriptSig(new Script(new byte[]{})); input.setScriptSig(new Script(new byte[]{}));
}); });
processModel.getTradeManager().requestPersistence();
return preparedDepositTx.bitcoinSerialize(); return preparedDepositTx.bitcoinSerialize();
} }
} }

View File

@ -83,6 +83,8 @@ public class SellerAsTakerSignsDepositTx extends TradeTask {
// We set the deposit tx to trade once we have it published // We set the deposit tx to trade once we have it published
processModel.setDepositTx(depositTx); processModel.setDepositTx(depositTx);
processModel.getTradeManager().requestPersistence();
complete(); complete();
} catch (Throwable t) { } catch (Throwable t) {
Contract contract = trade.getContract(); Contract contract = trade.getContract();