20 #ifndef RIPPLE_LEDGER_RULES_H_INCLUDED
21 #define RIPPLE_LEDGER_RULES_H_INCLUDED
23 #include <ripple/basics/base_uint.h>
24 #include <ripple/beast/hash/uhash.h>
25 #include <ripple/protocol/STVector256.h>
30 class DigestAwareReadView;
bool enabled(uint256 const &feature) const
Returns true if a feature is enabled.
std::shared_ptr< Impl const > impl_
Rules & operator=(Rules const &)=default
bool operator!=(Rules const &other) const
static Hasher::result_type digest(void const *data, std::size_t size) noexcept
ReadView that associates keys with digests.
friend Rules makeRulesGivenLedger(DigestAwareReadView const &ledger, std::unordered_set< uint256, beast::uhash<>> const &presets)
bool operator==(Rules const &) const
Returns true if two rule sets are identical.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Rules controlling protocol behavior.