mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-26 23:19:07 +00:00
WIP
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user