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(jObject["error"].ToString());
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;
}