Compare commits

...

7 Commits

Author SHA1 Message Date
Richard Holland
cee88fdd8f Merge branch 'dev' into disable_ocm_tests 2026-09-29 07:21:32 +10:00
Richard Holland
53cc07d889 clang 2026-09-29 07:20:11 +10:00
Richard Holland
77e309fff5 disable ocm tests (#846) 2026-09-29 07:15:33 +10:00
Richard Holland
888bdcbc2a disable ocm tests 2026-09-29 07:15:07 +10:00
Niq Dudfield
79319aaf96 fix(ci): skip docker cleanup when the run has no checkout path (#841) 2026-09-29 05:40:39 +10:00
tequ
a5163eeb50 Extract Transactor::finishApply from Transactor::operator() (#843)
Pure move of the post-apply pipeline (tec handling, invariants,
balance rewards, weak hooks, commit) into a helper so it can be
invoked more than once. No behaviour change.
2026-09-29 05:39:57 +10:00
Richard Holland
3bc435864f disable onchainmanifests for this release (#845) 2026-09-29 05:35:30 +10:00
5 changed files with 41 additions and 13 deletions

View File

@@ -91,5 +91,11 @@ jobs:
- name: Cleanup workspace
run: |
CHECKOUT_PATH="${{ needs.checkout.outputs.checkout_path }}"
# A run cancelled before checkout has no path; an empty one would
# make the rm below delete every run's checkout on the runner.
if [[ -z "${CHECKOUT_PATH}" ]]; then
echo "No checkout path (cancelled before checkout); nothing to clean"
exit 0
fi
echo "Cleaning workspace for ${CHECKOUT_PATH}"
rm -rf "${{ github.workspace }}/${CHECKOUT_PATH}"

View File

@@ -36,7 +36,7 @@
XRPL_FIX (20261001, Supported::yes, VoteBehavior::DefaultYes)
XRPL_FEATURE(HookOnV2_1, Supported::yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(OnChainManifests, Supported::yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(OnChainManifests, Supported::no, VoteBehavior::DefaultNo)
XRPL_FIX (HookMap, Supported::yes, VoteBehavior::DefaultYes)
XRPL_FIX (GuardDepth32, Supported::yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(NamedHooks, Supported::yes, VoteBehavior::DefaultNo)

View File

@@ -798,18 +798,21 @@ public:
void
run() override
{
using namespace test::jtx;
auto const sa = supported_amendments();
testSubmission(sa);
testUpdate(sa);
testRevocation(sa);
testRetrieval(sa);
testSigningKeyRetrieval(sa);
testMalformed(sa);
testEnvelopeRejections(sa);
testCorruptLedger(sa);
testGossipSelection(sa);
testDisabled(sa);
// RH TODO: re-add these when the amendment is ready for supported::yes
/*
using namespace test::jtx;
auto const sa = supported_amendments();
testSubmission(sa);
testUpdate(sa);
testRevocation(sa);
testRetrieval(sa);
testSigningKeyRetrieval(sa);
testMalformed(sa);
testEnvelopeRejections(sa);
testCorruptLedger(sa);
testGossipSelection(sa);
testDisabled(sa);
*/
}
};

View File

@@ -2050,6 +2050,16 @@ Transactor::operator()()
if (auto stream = j_.trace())
stream << "preclaim result: " << transToken(result);
return finishApply(result, hooksEnabled, aawMap, tsh);
}
ApplyResult
Transactor::finishApply(
TER result,
bool hooksEnabled,
std::map<AccountID, std::set<uint256>>& aawMap,
std::vector<std::pair<AccountID, bool>>& tsh)
{
bool applied = isTesSuccess(result);
auto fee = ctx_.tx.getFieldAmount(sfFee).xrp();

View File

@@ -228,6 +228,15 @@ protected:
// deduced until after apply i.e. pathing
// participants, crossed offers
// The post-apply pipeline of operator(): tec handling (reset),
// invariants, balance rewards, weak hooks and commit.
ApplyResult
finishApply(
TER result,
bool hooksEnabled,
std::map<AccountID, std::set<uint256>>& aawMap,
std::vector<std::pair<AccountID, bool>>& tsh);
///////////////////////////////////////////////////
TER