MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / get_validator

Method get_validator

fendermint/app/src/validators.rs:43–48  ·  view source on GitHub ↗
(&self, id: &tendermint::account::Id)

Source from the content-addressed store, hash-verified

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}

Callers 4

get_validator_infoMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected