Merge branch 'tapanito/transaction-invariant' into tapanito/transactor-invariant-pt2

This commit is contained in:
Vito Tumas
2026-03-31 12:18:57 +02:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -3,8 +3,6 @@
#include <xrpl/beast/utility/Journal.h>
#include <xrpl/ledger/ApplyViewImpl.h>
#include <memory>
namespace xrpl {
class ServiceRegistry;

View File

@@ -1264,6 +1264,8 @@ Transactor::operator()()
if (applied)
{
// Check invariants: if `tecINVARIANT_FAILED` is not returned, we can
// proceed to apply the tx
result = checkInvariants(result, fee);
if (result == tecINVARIANT_FAILED)
{

View File

@@ -295,6 +295,9 @@ invoke_apply(ApplyContext& ctx)
}
}
// Test-only factory — not part of the public API.
// The returned Transactor holds a raw reference to ctx; the caller must ensure
// the ApplyContext outlives the Transactor.
std::unique_ptr<Transactor>
makeTransactor(ApplyContext& ctx)
{