Gate a transaction based on static ledger information.
PreclaimResult preclaim( PreflightResult const& preflightResult, Application& app, OpenView const& view);
The transaction is checked against all possible validity constraints that DO require a ledger.
If preclaim succeeds, then the transaction is very likely to claim a fee. This will determine if the transaction is safe to relay without being applied to the open ledger.
"Succeeds" in this case is defined as returning a tes
or tec
,
since both lead to claiming a fee.
The transaction has been checked and validated using preflight
Name |
Description |
---|---|
|
The result of a previous call to |
|
The current running |
|
The open ledger that the transaction will attempt to be applied to. |
PreclaimResult
,
preflight
,
doApply
,
apply
A PreclaimResult
object containing,
among other things the TER
code and the base fee value for this transaction.
#include <ripple/app/tx/applySteps.h>