mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Factor out Transactor::trapTransaction (#5087)
This commit is contained in:
@@ -825,6 +825,14 @@ Transactor::reset(XRPAmount fee)
|
||||
return {ter, fee};
|
||||
}
|
||||
|
||||
// The sole purpose of this function is to provide a convenient, named
|
||||
// location to set a breakpoint, to be used when replaying transactions.
|
||||
void
|
||||
Transactor::trapTransaction(uint256 txHash) const
|
||||
{
|
||||
JLOG(j_.debug()) << "Transaction trapped: " << txHash;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
std::pair<TER, bool>
|
||||
Transactor::operator()()
|
||||
@@ -857,7 +865,7 @@ Transactor::operator()()
|
||||
if (auto const& trap = ctx_.app.trapTxID();
|
||||
trap && *trap == ctx_.tx.getTransactionID())
|
||||
{
|
||||
JLOG(j_.debug()) << "Transaction trapped: " << *trap;
|
||||
trapTransaction(*trap);
|
||||
}
|
||||
|
||||
auto result = ctx_.preclaimResult;
|
||||
|
||||
@@ -198,6 +198,8 @@ private:
|
||||
checkSingleSign(PreclaimContext const& ctx);
|
||||
static NotTEC
|
||||
checkMultiSign(PreclaimContext const& ctx);
|
||||
|
||||
void trapTransaction(uint256) const;
|
||||
};
|
||||
|
||||
/** Performs early sanity checks on the txid */
|
||||
|
||||
Reference in New Issue
Block a user