xrpld
Loading...
Searching...
No Matches
xrpl::ConsensusTransSetSF Class Reference

#include <ConsensusTransSetSF.h>

Inheritance diagram for xrpl::ConsensusTransSetSF:
Collaboration diagram for xrpl::ConsensusTransSetSF:

Public Types

using NodeCache = TaggedCache<SHAMapHash, Blob>

Public Member Functions

 ConsensusTransSetSF (Application &app, NodeCache &nodeCache)
void gotNode (bool fromFilter, SHAMapHash const &nodeHash, std::uint32_t ledgerSeq, Blob &&nodeData, SHAMapNodeType type) const override
std::optional< Blob > getNode (SHAMapHash const &nodeHash) const override

Static Public Attributes

static constexpr std::size_t kMinTxNodeBytesToParse
 The size a node's hash-prefixed wire data must reach before gotNode() tries to parse and resubmit it as a transaction.

Private Attributes

Application & app_
NodeCache & nodeCache_
beast::Journal const j_

Detailed Description

Definition at line 23 of file ConsensusTransSetSF.h.

Member Typedef Documentation

◆ NodeCache

Constructor & Destructor Documentation

◆ ConsensusTransSetSF()

xrpl::ConsensusTransSetSF::ConsensusTransSetSF ( Application & app,
NodeCache & nodeCache )

Definition at line 27 of file ConsensusTransSetSF.cpp.

Member Function Documentation

◆ gotNode()

void xrpl::ConsensusTransSetSF::gotNode ( bool fromFilter,
SHAMapHash const & nodeHash,
std::uint32_t ledgerSeq,
Blob && nodeData,
SHAMapNodeType type ) const
overridevirtual

Implements xrpl::SHAMapSyncFilter.

Definition at line 33 of file ConsensusTransSetSF.cpp.

◆ getNode()

std::optional< Blob > xrpl::ConsensusTransSetSF::getNode ( SHAMapHash const & nodeHash) const
nodiscardoverridevirtual

Implements xrpl::SHAMapSyncFilter.

Definition at line 73 of file ConsensusTransSetSF.cpp.

Member Data Documentation

◆ kMinTxNodeBytesToParse

std::size_t xrpl::ConsensusTransSetSF::kMinTxNodeBytesToParse
staticconstexpr
Initial value:
=
constexpr std::size_t kMinShaMapItemBytes

The size a node's hash-prefixed wire data must reach before gotNode() tries to parse and resubmit it as a transaction.

One byte past the smallest a hash-prefixed SHAMap leaf can be, which a signed transaction clears.

Definition at line 34 of file ConsensusTransSetSF.h.

◆ app_

Application& xrpl::ConsensusTransSetSF::app_
private

Definition at line 52 of file ConsensusTransSetSF.h.

◆ nodeCache_

NodeCache& xrpl::ConsensusTransSetSF::nodeCache_
private

Definition at line 53 of file ConsensusTransSetSF.h.

◆ j_

beast::Journal const xrpl::ConsensusTransSetSF::j_
private

Definition at line 54 of file ConsensusTransSetSF.h.