Skip to content

Commit

Permalink
[fold] add batch preflight
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed Jan 3, 2025
1 parent 71ca218 commit 3b132f9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/xrpld/app/tx/detail/Batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,15 @@ Batch::preflight(PreflightContext const& ctx)
return temINVALID_BATCH;
}

if (auto const preflightResult =
ripple::preflight(ctx.app, ctx.rules, stx, tapFAIL_HARD, ctx.j);
preflightResult.ter != tesSUCCESS)
{
JLOG(ctx.j.trace()) << "Batch: inner txn preflight failed."
<< "index: " << i;
return preflightResult.ter;
}

// If the inner account is the same as the outer account, continue.
// 1. We do not add it to the unique signers set.
// 2. We do check a signature for the inner account does not exist.
Expand Down

0 comments on commit 3b132f9

Please sign in to comment.