diff --git a/lib/g1/api.dart b/lib/g1/api.dart index 20bcc2b1a5f733005e4ec3a247f39b6f495b1644..5a3b56f2be216a05e0c8ea775ad1662a6911525c 100644 --- a/lib/g1/api.dart +++ b/lib/g1/api.dart @@ -568,7 +568,7 @@ Future<PayResult> pay( {required String to, required double amount, String? comment, - bool? useMempool}) async { + bool useMempool = false}) async { try { final SelectedGvaNode selected = getGvaNode(); @@ -584,7 +584,7 @@ Future<PayResult> pay( amount: amount, comment: comment ?? '', cesiumSeed: wallet.seed, - useMempool: useMempool ?? false, + useMempool: useMempool, raiseException: true); logger('GVA replied with "$response"'); return PayResult(message: response, node: selected); diff --git a/lib/ui/pay_helper.dart b/lib/ui/pay_helper.dart index f060996764463635726fcc98832690d2eee7b049..20aa457e6ec51d44fd1c38be7be423ec27c6a078 100644 --- a/lib/ui/pay_helper.dart +++ b/lib/ui/pay_helper.dart @@ -88,7 +88,10 @@ Future<void> payWithRetry( return; } else { final PayResult result = await pay( - to: contactPubKey, comment: comment, amount: convertedAmount); + to: contactPubKey, + comment: comment, + amount: convertedAmount, + useMempool: true); final Transaction pending = tx.copyWith( debugInfo: 'Node used: ${result.node != null ? result.node!.url : 'unknown'}');