interfaces::BlockRef

A lightweight reference to a block by hash and height.

Synopsis

Declared in <interfaces/types.h>

struct BlockRef;

Non-Member Functions

NameDescription
::node::GetTipReturn the hash and height of the active chain tip.
::node::WaitTipChangedWaits for the connected tip to change until timeout has elapsed. During node initialization, this will wait until the tip is connected (regardless of timeout). Returns the current tip, or nullopt if the node is shutting down or interrupt() is called.