@@ -1285,7 +1285,7 @@ public MoneroTxWallet createPayoutTx() {
1285
1285
MoneroRpcConnection sourceConnection = xmrConnectionService .getConnection ();
1286
1286
try {
1287
1287
MoneroTxWallet unsignedPayoutTx = doCreatePayoutTx ();
1288
- log .info ("Created unsigned payout tx for {} {}" );
1288
+ log .info ("Done creating unsigned payout tx for {} {}" , getClass (). getSimpleName (), getShortId () );
1289
1289
return unsignedPayoutTx ;
1290
1290
} catch (IllegalArgumentException | IllegalStateException e ) {
1291
1291
throw e ;
@@ -2873,6 +2873,10 @@ else if (hasFailedTx && isPayoutPublished()) {
2873
2873
}
2874
2874
}
2875
2875
2876
+ public boolean onPayoutError (boolean syncAndPoll ) {
2877
+ return onPayoutError (syncAndPoll , false );
2878
+ }
2879
+
2876
2880
/**
2877
2881
* Handle a payout error due to NACK or the transaction failing (e.g. due to reorg).
2878
2882
*
@@ -2883,15 +2887,21 @@ else if (hasFailedTx && isPayoutPublished()) {
2883
2887
public boolean onPayoutError (boolean syncAndPoll , boolean autoMarkPaymentReceived ) {
2884
2888
log .warn ("Handling payout error for {} {}" , getClass ().getSimpleName (), getId ());
2885
2889
if (isPayoutPublished ()) return false ;
2886
- if (syncAndPoll ) syncAndPollWallet ();
2890
+ if (syncAndPoll ) {
2891
+ try {
2892
+ syncAndPollWallet ();
2893
+ } catch (Exception e ) {
2894
+ log .warn ("Error syncing and polling wallet for {} {}: {}" , getClass ().getSimpleName (), getId (), e .getMessage ());
2895
+ }
2896
+ }
2887
2897
if (isPayoutPublished () || !isPaymentReceived ()) return false ;
2888
2898
2889
2899
// reset trade state
2890
- log .warn ("Resetting state to payment sent for {} {}" , getClass ().getSimpleName (), getId ());
2900
+ log .warn ("Resetting state to PAYMENT_SENT for {} {}" , getClass ().getSimpleName (), getId ());
2891
2901
resetToPaymentSentState ();
2892
2902
getProcessModel ().setPaymentSentPayoutTxStale (true );
2893
2903
getSelf ().setUnsignedPayoutTxHex (null );
2894
- requestPersistence ( );
2904
+ persistNow ( null );
2895
2905
2896
2906
// automatically mark payment received
2897
2907
if (autoMarkPaymentReceived ) {
0 commit comments