std::shared_ptr< const SHAMapItem > const& find( Tx::ID const& entry) const;
Name |
Description |
---|---|
|
The ID of the transaction to find. |
A shared pointer to the SHAMapItem.
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.