This commit is contained in:
JCW
2026-08-18 21:51:59 +01:00
parent cf903ca4fd
commit ff3ceafbef
4 changed files with 680 additions and 498 deletions

View File

@@ -197,8 +197,7 @@ private:
// but it will not pass preflight
auto createJson = env.json(
set(lender, broker.brokerID, broker.asset(principalRequest).value()), Fee(loanSetFee));
env(createJson,
env.enabled(featureLendingProtocolV1_1) ? Ter(temINVALID) : Ter(temBAD_SIGNER));
env(createJson, Ter(temBAD_SIGNER));
// Adding an empty counterparty signature object also fails, but
// at the RPC level.
@@ -317,8 +316,7 @@ private:
bool const twoStep = flow == LoanFlow::TwoStep;
Env env(*this);
if (twoStep && !env.enabled(featureLendingProtocolV1_1))
continue;
BEAST_EXPECT(env.enabled(featureLendingProtocolV1_1));
env.fund(XRP(1'000), issuer, lender);
@@ -818,6 +816,8 @@ public:
for (auto const& features : jtx::amendmentCombinations(
{fixCleanup3_1_3, fixCleanup3_2_0, featureMPTokensV2}, all_))
runAmendmentSensitive(features);
testBatchBypassCounterparty(all_ | featureLendingProtocolV1_1);
testLifecycle(all_ | featureLendingProtocolV1_1);
}
};

View File

@@ -175,8 +175,7 @@ private:
// missing
BEAST_EXPECT(
jSubmitBlobResult.isMember(jss::engine_result) &&
jSubmitBlobResult[jss::engine_result].asString() ==
(env.enabled(featureLendingProtocolV1_1) ? "temINVALID" : "temBAD_SIGNER"));
jSubmitBlobResult[jss::engine_result].asString() == "temBAD_SIGNER");
}
// 3. Borrower sends the signed transaction to the lender
@@ -282,8 +281,7 @@ private:
// missing
BEAST_EXPECT(
jSubmitBlobResult.isMember(jss::engine_result) &&
jSubmitBlobResult[jss::engine_result].asString() ==
(env.enabled(featureLendingProtocolV1_1) ? "temINVALID" : "temBAD_SIGNER"));
jSubmitBlobResult[jss::engine_result].asString() == "temBAD_SIGNER");
}
// 3. Lender sends the signed transaction to the Borrower

View File

@@ -550,6 +550,7 @@ public:
for (auto const& features : jtx::amendmentCombinations(
{fixCleanup3_1_3, fixCleanup3_2_0, featureMPTokensV2}, all_))
runAmendmentSensitive(features);
testRIPD3459(all_ | featureLendingProtocolV1_1);
}
};

File diff suppressed because it is too large Load Diff