PrevUpHomeNext

RCLTxSet::find

Lookup a transaction.

Synopsis
std::shared_ptr< const SHAMapItem > const &
find(
    Tx::ID const& entry) const;
Description
Parameters

Name

Description

entry

The ID of the transaction to find.

Return Value

A shared pointer to the SHAMapItem.

Remarks

Since find may not succeed, this returns a std::shared_ptr<const SHAMapItem> rather than a Tx, which cannot refer to a missing transaction. The generic consensus code use the shared_ptr semantics to know whether the find was succesfully and properly creates a Tx as needed.


PrevUpHomeNext