lighthouse-pulse/validator_client/src/duties/traits.rs
2019-01-16 20:38:53 +11:00

17 lines
342 B
Rust

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>;
}