pub trait BlockHeadersClient {
fn is_valid_root_for_height(&self, root: [u8; 32], height: u64) -> bool;
}
#[derive(Debug, Clone)]
pub struct MockHeadersClient;
impl BlockHeadersClient for MockHeadersClient {
fn is_valid_root_for_height(&self, _root: [u8; 32], _height: u64) -> bool {
true
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_mock_client() {
let client = MockHeadersClient;
assert!(client.is_valid_root_for_height([0u8; 32], 1));
}
}