20#include <xrpld/ledger/ReadView.h>
31 return iterator(view_, view_->slesBegin());
37 return iterator(view_, view_->slesEnd());
43 return iterator(view_, view_->slesUpperBound(key));
53 return begin() == end();
59 return iterator(view_, view_->txsBegin());
65 return iterator(view_, view_->txsEnd());
83 auto const sle = ledger.
read(k);
85 return Rules(presets,
digest, sle->getFieldV256(sfAmendments));
87 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.
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)