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

Method enforce_f0_source

ipc/api/src/runtime.rs:13–16  ·  view source on GitHub ↗

Agents may set the source of a checkpoint using f2-based subnetIDs, \ but actors are expected to use f0-based subnetIDs, thus the need to enforce that the source is a f0-based subnetID.

(&mut self, rt: &impl Runtime)

Source from the content-addressed store, hash-verified

11 /// but actors are expected to use f0-based subnetIDs, thus the need to enforce
12 /// that the source is a f0-based subnetID.
13 pub fn enforce_f0_source(&mut self, rt: &impl Runtime) -> anyhow::Result<()> {
14 self.data.source = self.source().f0_id(rt);
15 Ok(())
16 }
17}
18
19impl Validators {

Callers

nothing calls this directly

Calls 1

f0_idMethod · 0.80

Tested by

no test coverage detected