MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / get_validator_changes

Method get_validator_changes

fendermint/vm/topdown/src/proxy.rs:104–117  ·  view source on GitHub ↗
(
        &self,
        height: BlockHeight,
    )

Source from the content-addressed store, hash-verified

102 /// Get the validator set at the specified height.
103 #[instrument(skip(self))]
104 async fn get_validator_changes(
105 &self,
106 height: BlockHeight,
107 ) -> anyhow::Result<TopDownQueryPayload<Vec<StakingChangeRequest>>> {
108 self.ipc_provider
109 .get_validator_changeset(&self.child_subnet, height as ChainEpoch)
110 .await
111 .map(|mut v| {
112 // sort ascending, we dont assume the changes are ordered
113 v.value
114 .sort_by(|a, b| a.configuration_number.cmp(&b.configuration_number));
115 v
116 })
117 }
118}

Callers

nothing calls this directly

Calls 2

cmpMethod · 0.45

Tested by

no test coverage detected