Update the feature flag

This commit is contained in:
JCW
2026-06-06 21:41:24 +01:00
parent b7660410b4
commit 710dd81e83
4 changed files with 14 additions and 10 deletions

View File

@@ -15,6 +15,7 @@
// Add new amendments to the top of this list.
// Keep it sorted in reverse chronological order.
XRPL_FEATURE(LendingPermissionedDomain, Supported::No, VoteBehavior::DefaultNo)
XRPL_FIX (Cleanup3_2_0, Supported::Yes, VoteBehavior::DefaultNo)
XRPL_FEATURE(MPTokensV2, Supported::No, VoteBehavior::DefaultNo)
XRPL_FIX (Cleanup3_1_3, Supported::Yes, VoteBehavior::DefaultYes)

View File

@@ -140,7 +140,7 @@ ValidLoanBroker::finalize(
auto const& before = broker.brokerBefore;
if (view.rules().enabled(fixCleanup3_2_0))
if (view.rules().enabled(featureLendingPermissionedDomain))
{
if (after->at(~sfDomainID) && !after->isFlag(lsfLoanBrokerPrivate))
{

View File

@@ -53,7 +53,7 @@ LoanBrokerSet::preflight(PreflightContext const& ctx)
if (!validNumericRange(tx[~sfDebtMaximum], Number(kMaxMpTokenAmount), Number(0)))
return temINVALID;
if (!ctx.rules.enabled(fixCleanup3_2_0))
if (!ctx.rules.enabled(featureLendingPermissionedDomain))
{
if (tx.isFlag(tfLoanBrokerPrivate) || tx.isFieldPresent(sfDomainID))
{
@@ -73,7 +73,7 @@ LoanBrokerSet::preflight(PreflightContext const& ctx)
if (tx[sfLoanBrokerID] == beast::kZero)
return temINVALID;
if (ctx.rules.enabled(fixCleanup3_2_0))
if (ctx.rules.enabled(featureLendingPermissionedDomain))
{
// Cannot change private flag on existing broker
if (tx.isFlag(tfLoanBrokerPrivate))
@@ -85,7 +85,7 @@ LoanBrokerSet::preflight(PreflightContext const& ctx)
else
{
// We're creating a new LoanBroker.
if (ctx.rules.enabled(fixCleanup3_2_0))
if (ctx.rules.enabled(featureLendingPermissionedDomain))
{
auto const domainID = tx.at(~sfDomainID);
if (domainID)
@@ -163,7 +163,7 @@ LoanBrokerSet::preclaim(PreclaimContext const& ctx)
return tecNO_PERMISSION;
}
if (ctx.view.rules().enabled(fixCleanup3_2_0))
if (ctx.view.rules().enabled(featureLendingPermissionedDomain))
{
auto const domainID = tx[~sfDomainID];
if (domainID && *domainID != beast::kZero)
@@ -209,7 +209,7 @@ LoanBrokerSet::preclaim(PreclaimContext const& ctx)
}
}
if (ctx.view.rules().enabled(fixCleanup3_2_0))
if (ctx.view.rules().enabled(featureLendingPermissionedDomain))
{
auto const domainID = tx[~sfDomainID];
if (!sleBroker->isFlag(lsfLoanBrokerPrivate) && domainID)
@@ -273,7 +273,8 @@ LoanBrokerSet::doApply()
if (auto const debtMax = tx[~sfDebtMaximum])
broker->at(sfDebtMaximum) = *debtMax;
if (ctx_.view().rules().enabled(fixCleanup3_2_0) && broker->isFlag(lsfLoanBrokerPrivate))
if (ctx_.view().rules().enabled(featureLendingPermissionedDomain) &&
broker->isFlag(lsfLoanBrokerPrivate))
{
if (auto const domainID = tx[~sfDomainID])
{
@@ -359,7 +360,7 @@ LoanBrokerSet::doApply()
if (auto const coverLiq = tx[~sfCoverRateLiquidation])
broker->at(sfCoverRateLiquidation) = *coverLiq;
if (ctx_.view().rules().enabled(fixCleanup3_2_0))
if (ctx_.view().rules().enabled(featureLendingPermissionedDomain))
{
if (tx.isFlag(tfLoanBrokerPrivate))
{

View File

@@ -363,7 +363,8 @@ LoanSet::preclaim(PreclaimContext const& ctx)
return ret;
}
if (ctx.view.rules().enabled(fixCleanup3_2_0) && brokerSle->isFlag(lsfLoanBrokerPrivate))
if (ctx.view.rules().enabled(featureLendingPermissionedDomain) &&
brokerSle->isFlag(lsfLoanBrokerPrivate))
{
auto const domainID = brokerSle->at(~sfDomainID);
if (!domainID)
@@ -424,7 +425,8 @@ LoanSet::doApply()
return tefBAD_LEDGER; // LCOV_EXCL_LINE
}
if (ctx_.view().rules().enabled(fixCleanup3_2_0) && brokerSle->isFlag(lsfLoanBrokerPrivate))
if (ctx_.view().rules().enabled(featureLendingPermissionedDomain) &&
brokerSle->isFlag(lsfLoanBrokerPrivate))
{
auto const domainID = brokerSle->at(~sfDomainID);
if (!domainID)