mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix build error
- New code referenced `isEnabled`, which was renamed in an updated prereq PR
This commit is contained in:
@@ -29,7 +29,7 @@ struct PreflightContext;
|
||||
|
||||
// Lending protocol has dependencies, so capture them here.
|
||||
bool
|
||||
lendingProtocolEnabled(PreflightContext const& ctx);
|
||||
checkLendingProtocolDependencies(PreflightContext const& ctx);
|
||||
|
||||
namespace detail {
|
||||
// These functions should rarely be used directly. More often, the ultimate
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
lendingProtocolEnabled(PreflightContext const& ctx)
|
||||
checkLendingProtocolDependencies(PreflightContext const& ctx)
|
||||
{
|
||||
return ctx.rules.enabled(featureLendingProtocol) &&
|
||||
VaultCreate::isEnabled(ctx);
|
||||
return ctx.rules.enabled(featureSingleAssetVault) &&
|
||||
VaultCreate::checkExtraFeatures(ctx);
|
||||
}
|
||||
|
||||
namespace detail {
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanBrokerCoverClawback::isEnabled(PreflightContext const& ctx)
|
||||
LoanBrokerCoverClawback::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
NotTEC
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static NotTEC
|
||||
preflight(PreflightContext const& ctx);
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanBrokerCoverDeposit::isEnabled(PreflightContext const& ctx)
|
||||
LoanBrokerCoverDeposit::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
NotTEC
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static NotTEC
|
||||
preflight(PreflightContext const& ctx);
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanBrokerCoverWithdraw::isEnabled(PreflightContext const& ctx)
|
||||
LoanBrokerCoverWithdraw::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
NotTEC
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static NotTEC
|
||||
preflight(PreflightContext const& ctx);
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanBrokerDelete::isEnabled(PreflightContext const& ctx)
|
||||
LoanBrokerDelete::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
NotTEC
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static NotTEC
|
||||
preflight(PreflightContext const& ctx);
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanBrokerSet::isEnabled(PreflightContext const& ctx)
|
||||
LoanBrokerSet::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
NotTEC
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static NotTEC
|
||||
preflight(PreflightContext const& ctx);
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanDelete::isEnabled(PreflightContext const& ctx)
|
||||
LoanDelete::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
NotTEC
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static NotTEC
|
||||
preflight(PreflightContext const& ctx);
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanDraw::isEnabled(PreflightContext const& ctx)
|
||||
LoanDraw::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
NotTEC
|
||||
|
||||
@@ -35,7 +35,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static NotTEC
|
||||
preflight(PreflightContext const& ctx);
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanManage::isEnabled(PreflightContext const& ctx)
|
||||
LoanManage::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
std::uint32_t
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static std::uint32_t
|
||||
getFlagsMask(PreflightContext const& ctx);
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanPay::isEnabled(PreflightContext const& ctx)
|
||||
LoanPay::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
NotTEC
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static NotTEC
|
||||
preflight(PreflightContext const& ctx);
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
namespace ripple {
|
||||
|
||||
bool
|
||||
LoanSet::isEnabled(PreflightContext const& ctx)
|
||||
LoanSet::checkExtraFeatures(PreflightContext const& ctx)
|
||||
{
|
||||
return lendingProtocolEnabled(ctx);
|
||||
return checkLendingProtocolDependencies(ctx);
|
||||
}
|
||||
|
||||
std::uint32_t
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
}
|
||||
|
||||
static bool
|
||||
isEnabled(PreflightContext const& ctx);
|
||||
checkExtraFeatures(PreflightContext const& ctx);
|
||||
|
||||
static std::uint32_t
|
||||
getFlagsMask(PreflightContext const& ctx);
|
||||
|
||||
Reference in New Issue
Block a user