pub fn tip_block<C>(chain: Option<C>, db: &ZebraDb) -> Option<Arc<Block>>where C: AsRef<Chain>,
Returns the tip block of chain. If there is no chain, returns the tip of db.
chain
db