Checks transaction signature and local checks.
std::pair< Validity, std::string > checkValidity( HashRouter& router, STTx const& tx, Rules const& rules, Config const& config);
A Validity
enum representing
how valid the STTx
is and,
if not Valid
, a reason string.
Results are cached internally, so tests will not be repeated over repeated calls, unless cache expires.
std::pair
, where .first
is the status, and .second
is the reason if appropriate.
#include <ripple/app/tx/apply.h>