Validate fee during preflight

This commit is contained in:
Nik Bougalis
2015-07-31 11:25:31 -07:00
parent 22a8e25538
commit 5b90ccf65d
13 changed files with 105 additions and 40 deletions

View File

@@ -30,6 +30,10 @@ namespace ripple {
TER
SetTrust::preflight (PreflightContext const& ctx)
{
auto const ret = preflight1 (ctx);
if (!isTesSuccess (ret))
return ret;
auto& tx = ctx.tx;
auto& j = ctx.j;
@@ -79,7 +83,7 @@ SetTrust::preflight (PreflightContext const& ctx)
return temDST_NEEDED;
}
return Transactor::preflight(ctx);
return preflight2 (ctx);
}
TER