mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Factor out Transactor::trapTransaction (#5087)
This commit is contained in:
@@ -825,6 +825,14 @@ Transactor::reset(XRPAmount fee)
|
|||||||
return {ter, 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>
|
std::pair<TER, bool>
|
||||||
Transactor::operator()()
|
Transactor::operator()()
|
||||||
@@ -857,7 +865,7 @@ Transactor::operator()()
|
|||||||
if (auto const& trap = ctx_.app.trapTxID();
|
if (auto const& trap = ctx_.app.trapTxID();
|
||||||
trap && *trap == ctx_.tx.getTransactionID())
|
trap && *trap == ctx_.tx.getTransactionID())
|
||||||
{
|
{
|
||||||
JLOG(j_.debug()) << "Transaction trapped: " << *trap;
|
trapTransaction(*trap);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto result = ctx_.preclaimResult;
|
auto result = ctx_.preclaimResult;
|
||||||
|
|||||||
@@ -198,6 +198,8 @@ private:
|
|||||||
checkSingleSign(PreclaimContext const& ctx);
|
checkSingleSign(PreclaimContext const& ctx);
|
||||||
static NotTEC
|
static NotTEC
|
||||||
checkMultiSign(PreclaimContext const& ctx);
|
checkMultiSign(PreclaimContext const& ctx);
|
||||||
|
|
||||||
|
void trapTransaction(uint256) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Performs early sanity checks on the txid */
|
/** Performs early sanity checks on the txid */
|
||||||
|
|||||||
Reference in New Issue
Block a user