Trait fvm::kernel::NetworkOps
source · pub trait NetworkOps {
// Required methods
fn network_context(&self) -> Result<NetworkContext>;
fn tipset_cid(&self, epoch: ChainEpoch) -> Result<Cid>;
}
Expand description
Network-related operations.
Required Methods§
sourcefn network_context(&self) -> Result<NetworkContext>
fn network_context(&self) -> Result<NetworkContext>
Network information (epoch, version, etc.).
sourcefn tipset_cid(&self, epoch: ChainEpoch) -> Result<Cid>
fn tipset_cid(&self, epoch: ChainEpoch) -> Result<Cid>
The CID of the tipset at the specified epoch.