xrpld
Loading...
Searching...
No Matches
xrpl::Transaction::Locator Struct Reference

#include <Transaction.h>

Collaboration diagram for xrpl::Transaction::Locator:

Public Member Functions

bool isFound () const
uint256 const & getNodestoreHash ()
uint32_t getLedgerSequence ()
ClosedInterval< uint32_t > const & getLedgerRangeSearched ()

Public Attributes

std::variant< std::pair< uint256, uint32_t >, ClosedInterval< uint32_t > > locator

Detailed Description

Definition at line 313 of file Transaction.h.

Member Function Documentation

◆ isFound()

bool xrpl::Transaction::Locator::isFound ( ) const
nodiscard
Returns
true if transaction was found, false otherwise

Call this function first to determine the type of the contained info. Calling the wrong getter function will throw an exception. See documentation for the getter functions for more details

Definition at line 325 of file Transaction.h.

◆ getNodestoreHash()

uint256 const & xrpl::Transaction::Locator::getNodestoreHash ( )
Returns
key used to find transaction in nodestore
Exceptions
ifisFound() returns false

Definition at line 336 of file Transaction.h.

◆ getLedgerSequence()

uint32_t xrpl::Transaction::Locator::getLedgerSequence ( )
Returns
sequence of ledger containing the transaction
Exceptions
ifisFound() returns false

Definition at line 347 of file Transaction.h.

◆ getLedgerRangeSearched()

ClosedInterval< uint32_t > const & xrpl::Transaction::Locator::getLedgerRangeSearched ( )
Returns
range of ledgers searched
Exceptions
ifisFound() returns true

Definition at line 358 of file Transaction.h.

Member Data Documentation

◆ locator

std::variant<std::pair<uint256, uint32_t>, ClosedInterval<uint32_t> > xrpl::Transaction::Locator::locator

Definition at line 315 of file Transaction.h.