pub fn get_state<T: TxnTExt>( txn: &T, channel: &ChannelRef<T>, mid: Option<u64>, ) -> Result<Option<(u64, Merkle, Merkle)>, Error>