pub type StateMap<State> = BTreeMap<BlockId, BlockState<State>>;