pub trait GetHeight {
    // Required method
    fn get_height(&self) -> Result<u32, Error>;
}
Expand description

Trait for getting the current height of the blockchain.

Required Methods§

source

fn get_height(&self) -> Result<u32, Error>

Return the current height

Implementations on Foreign Types§

source§

impl<T: GetHeight> GetHeight for Arc<T>

Implementors§

source§

impl GetHeight for AnyBlockchain

source§

impl GetHeight for CompactFiltersBlockchain

Available on crate feature compact_filters only.
source§

impl GetHeight for ElectrumBlockchain

Available on crate feature electrum only.
source§

impl GetHeight for EsploraBlockchain

Available on crate feature esplora only.
source§

impl GetHeight for RpcBlockchain

Available on crate feature rpc only.