From 6ec24965e6e532c6487218e994bc710bfa61b8f0 Mon Sep 17 00:00:00 2001
From: vjrj <vjrj@comunes.org>
Date: Mon, 3 Apr 2023 00:01:58 +0200
Subject: [PATCH] Added mempool param

---
 lib/g1/api.dart | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/g1/api.dart b/lib/g1/api.dart
index 20882786..92eabfa8 100644
--- a/lib/g1/api.dart
+++ b/lib/g1/api.dart
@@ -444,7 +444,10 @@ Future<http.Response> _requestWithRetry(
 }
 
 Future<String> pay(
-    {required String to, required double amount, String? comment}) async {
+    {required String to,
+    required double amount,
+    String? comment,
+    bool? useMempool}) async {
   final String output = getGvaNode();
   if (Uri.tryParse(output) != null) {
     final String node = output;
@@ -459,6 +462,7 @@ Future<String> pay(
           amount: amount,
           comment: comment ?? '',
           cesiumSeed: wallet.seed,
+          useMempool: useMempool ?? false,
           raiseException: true);
       logger('GVA replied with "$response"');
       return response;
-- 
GitLab