Function tuxedo_template_wallet::sync::get_block_hash
source · pub(crate) fn get_block_hash(db: &Db, height: u32) -> Result<Option<H256>>
Expand description
Gets the block hash from the local database given a block height. Similar the Node’s RPC.
Some if the block exists, None if the block does not exist.