add check in import preclaim for non-zero fee

This commit is contained in:
Richard Holland
2023-08-17 09:44:38 +00:00
parent 7a860910a6
commit 129c25a90a
4 changed files with 64 additions and 52 deletions

View File

@@ -191,7 +191,12 @@ XRPNotCreated::finalize(
return false;
}
return (drops_ <= maxDropsAdded.drops() - fee.drops());
bool const passed = (drops_ <= maxDropsAdded.drops() - fee.drops());
if (!passed)
JLOG(j.trace())
<< "XRPNotCreated failed.";
return passed;
}
if (view.rules().enabled(featureXahauGenesis) && tt == ttGENESIS_MINT && res == tesSUCCESS)