From 72be43e16d3900eb03633d2f1d0cb42f777d9d11 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 12 Jun 2023 13:34:33 +1000 Subject: [PATCH] batch: Added error description to addresses exceed lookahead --- FireWallet/BatchForm.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/FireWallet/BatchForm.cs b/FireWallet/BatchForm.cs index e79e7fb..c758f95 100644 --- a/FireWallet/BatchForm.cs +++ b/FireWallet/BatchForm.cs @@ -484,9 +484,18 @@ namespace FireWallet { AddLog("Error: "); AddLog(jObject["error"].ToString()); - NotifyForm notifyForm = new NotifyForm("Error: \n" + jObject["error"].ToString()); - notifyForm.ShowDialog(); - notifyForm.Dispose(); + if (jObject["error"].ToString().Contains("Batch output addresses would exceed lookahead")) + { + NotifyForm notifyForm = new NotifyForm("Error: \nBatch output addresses would exceed lookahead\nYour batch might have too many TXs."); + notifyForm.ShowDialog(); + notifyForm.Dispose(); + } + else + { + NotifyForm notifyForm = new NotifyForm("Error: \n" + jObject["error"].ToString()); + notifyForm.ShowDialog(); + notifyForm.Dispose(); + } return; }