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