mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-09 20:41:22 +00:00
17 lines
342 B
Rust
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>;
|
|
}
|