cycles-quartz/utils/tm-stateless-verifier/src/null_io.rs

14 lines
336 B
Rust
Raw Normal View History

2023-12-31 21:12:32 +00:00
use tendermint_light_client::{
components::io::{AtHeight, Io, IoError},
types::LightBlock,
};
#[derive(Clone, Debug)]
pub struct NullIo;
impl Io for NullIo {
fn fetch_light_block(&self, _height: AtHeight) -> Result<LightBlock, IoError> {
unimplemented!("stateless verification does NOT need access to Io")
}
}