1#include <xrpl/ledger/ReadView.h>
12 return iterator(view_, view_->slesBegin());
18 return iterator(view_, view_->slesEnd());
24 return iterator(view_, view_->slesUpperBound(key));
34 return begin() == end();
40 return iterator(view_, view_->txsBegin());
46 return iterator(view_, view_->txsEnd());
64 auto const sle = ledger.
read(k);
66 return Rules(presets,
digest, sle->getFieldV256(sfAmendments));
68 return Rules(presets);
ReadView that associates keys with digests.
virtual std::optional< digest_type > digest(key_type const &key) const =0
Return the digest associated with the key.
virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0
Return the state item associated with a key.
Rules controlling protocol behavior.
friend Rules makeRulesGivenLedger(DigestAwareReadView const &ledger, Rules const ¤t)
Keylet const & amendments() noexcept
The index of the amendment table.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
@ current
This was a new validation and was added.
static Hasher::result_type digest(void const *data, std::size_t size) noexcept
Rules makeRulesGivenLedger(DigestAwareReadView const &ledger, Rules const ¤t)
A pair of SHAMap key and LedgerEntryType.
iterator upper_bound(key_type const &key) const
sles_type(ReadView const &view)
txs_type(ReadView const &view)