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