batch: Added error description to addresses exceed lookahead

This commit is contained in:
Nathan Woodburn 2023-06-12 13:34:33 +10:00
parent c94bc8dcda
commit 72be43e16d
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -484,9 +484,18 @@ namespace FireWallet
{ {
AddLog("Error: "); AddLog("Error: ");
AddLog(jObject["error"].ToString()); AddLog(jObject["error"].ToString());
NotifyForm notifyForm = new NotifyForm("Error: \n" + jObject["error"].ToString()); if (jObject["error"].ToString().Contains("Batch output addresses would exceed lookahead"))
notifyForm.ShowDialog(); {
notifyForm.Dispose(); 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; return;
} }