(&self, id: &tendermint::account::Id)
| 41 | } |
| 42 | |
| 43 | pub fn get_validator(&self, id: &tendermint::account::Id) -> Result<PublicKey> { |
| 44 | self.map |
| 45 | .get(id) |
| 46 | .cloned() |
| 47 | .ok_or_else(|| anyhow!("validator not found")) |
| 48 | } |
| 49 | } |
no test coverage detected