lighthouse-pulse/validator_client/src/duties/traits.rs

17 lines
342 B
Rust
Raw Normal View History

2019-01-16 09:38:53 +00:00
use super::EpochDuties;
use bls::PublicKey;
#[derive(Debug, PartialEq, Clone)]
pub enum BeaconNodeError {
RemoteFailure(String),
DecodeFailure,
}
pub trait BeaconNode: Send + Sync {
fn request_shuffling(
&self,
epoch: u64,
public_key: &PublicKey,
) -> Result<Option<EpochDuties>, BeaconNodeError>;
}