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;
62 Rules const& current);
std::unordered_set< uint256, beast::uhash<> > const & presets() const
bool enabled(uint256 const &feature) const
Returns true if a feature is enabled.
std::shared_ptr< Impl const > impl_
friend Rules makeRulesGivenLedger(DigestAwareReadView const &ledger, Rules const ¤t)
Rules & operator=(Rules const &)=default
bool operator!=(Rules const &other) const
static Hasher::result_type digest(void const *data, std::size_t size) noexcept
Integers of any length that is a multiple of 32-bits.
ReadView that associates keys with digests.
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.