1#ifndef XRPL_SHAMAP_SHAMAPTXLEAFNODE_H_INCLUDED
2#define XRPL_SHAMAP_SHAMAPTXLEAFNODE_H_INCLUDED
4#include <xrpl/basics/CountedObject.h>
5#include <xrpl/protocol/HashPrefix.h>
6#include <xrpl/protocol/digest.h>
7#include <xrpl/shamap/SHAMapItem.h>
8#include <xrpl/shamap/SHAMapLeafNode.h>
18 boost::intrusive_ptr<SHAMapItem const> item,
26 boost::intrusive_ptr<SHAMapItem const> item,
55 s.addRaw(
item_->slice());
63 s.addRaw(
item_->slice());
Tracks the number of instances of an object.
boost::intrusive_ptr< SHAMapItem const > item_
A leaf node for a transaction.
SHAMapTxLeafNode(boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t cowid)
void updateHash() final override
Recalculate the hash of this node.
SHAMapNodeType getType() const final override
Determines the type of node.
void serializeWithPrefix(Serializer &s) const final override
Serialize the node in a format appropriate for hashing.
void serializeForWire(Serializer &s) const final override
Serialize the node in a format appropriate for sending over the wire.
intr_ptr::SharedPtr< SHAMapTreeNode > clone(std::uint32_t cowid) const final override
Make a copy of this node, setting the owner.
SHAMapTxLeafNode(boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t cowid, SHAMapHash const &hash)
A shared intrusive pointer class that supports weak pointers.
std::uint32_t cowid() const
Returns the SHAMap that owns this node.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
static constexpr unsigned char const wireTypeTransaction
@ transactionID
transaction plus signature to give transaction ID
sha512_half_hasher::result_type sha512Half(Args const &... args)
Returns the SHA512-Half of a series of objects.