mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use Permission to check if a Transactor is enabled
- Adds a Permission::getTxFeature lookup function to find the controlling amendment for a Transactor, if any. - Returns temDISABLED from preflight if there is an amendment and it's not enabled. - Still need to go through and remove all the now-redundant isEnabled functions.
This commit is contained in:
@@ -83,6 +83,9 @@ public:
|
||||
std::optional<TxType>
|
||||
getGranularTxType(GranularPermissionType const& gpType) const;
|
||||
|
||||
std::optional<std::reference_wrapper<uint256 const>> const
|
||||
getTxFeature(TxType txType) const;
|
||||
|
||||
bool
|
||||
isDelegatable(std::uint32_t const& permissionValue, Rules const& rules)
|
||||
const;
|
||||
|
||||
Reference in New Issue
Block a user