3#include <xrpl/basics/CountedObject.h>
4#include <xrpl/protocol/HashPrefix.h>
5#include <xrpl/protocol/digest.h>
6#include <xrpl/shamap/SHAMapItem.h>
7#include <xrpl/shamap/SHAMapLeafNode.h>
23 boost::intrusive_ptr<SHAMapItem const> item,
51 s.addRaw(
item_->slice());
52 s.addBitString(
item_->key());
60 s.addRaw(
item_->slice());
61 s.addBitString(
item_->key());
SHAMapAccountStateLeafNode(boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t cowid, SHAMapHash const &hash)
void serializeWithPrefix(Serializer &s) const final
Serialize the node in a format appropriate for hashing.
void updateHash() final
Recalculate the hash of this node.
SHAMapAccountStateLeafNode(boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t cowid)
SHAMapTreeNodePtr clone(std::uint32_t cowid) const final
Make a copy of this node, setting the owner.
SHAMapNodeType getType() const final
Determines the type of node.
void serializeForWire(Serializer &s) const final
Serialize the node in a format appropriate for sending over the wire.
boost::intrusive_ptr< SHAMapItem const > item_
SHAMapLeafNode(boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t cowid)
std::uint32_t cowid() const
Returns the SHAMap that owns this node.
SharedPtr< T > makeShared(A &&... args)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
intr_ptr::SharedPtr< SHAMapTreeNode > SHAMapTreeNodePtr
sha512_half_hasher::result_type sha512Half(Args const &... args)
Returns the SHA512-Half of a series of objects.
static constexpr unsigned char const kWireTypeAccountState