mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 06:44:35 +00:00
Merge remote-tracking branch 'origin/unstable' into electra_attestation_changes
This commit is contained in:
@@ -33,6 +33,7 @@ pub struct WatchBlockprint {
|
||||
}
|
||||
|
||||
#[derive(Debug, QueryableByName, diesel::FromSqlRow)]
|
||||
#[allow(dead_code)]
|
||||
pub struct WatchValidatorBlockprint {
|
||||
#[diesel(sql_type = Integer)]
|
||||
pub proposer_index: i32,
|
||||
|
||||
@@ -24,6 +24,7 @@ pub use server::blockprint_routes;
|
||||
const TIMEOUT: Duration = Duration::from_secs(50);
|
||||
|
||||
#[derive(Debug)]
|
||||
#[allow(dead_code)]
|
||||
pub enum Error {
|
||||
Reqwest(reqwest::Error),
|
||||
Url(url::ParseError),
|
||||
|
||||
@@ -6,6 +6,7 @@ use serde_json::json;
|
||||
use std::io::Error as IoError;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[allow(dead_code)]
|
||||
pub enum Error {
|
||||
Axum(AxumError),
|
||||
Hyper(HyperError),
|
||||
|
||||
@@ -5,6 +5,7 @@ use eth2::{Error as Eth2Error, SensitiveError};
|
||||
use std::fmt;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[allow(dead_code)]
|
||||
pub enum Error {
|
||||
BeaconChain(BeaconChainError),
|
||||
Eth2(Eth2Error),
|
||||
|
||||
@@ -9,6 +9,7 @@ use eth2::{
|
||||
};
|
||||
use log::{debug, error, info, warn};
|
||||
use std::collections::HashSet;
|
||||
use std::marker::PhantomData;
|
||||
use types::{BeaconBlockHeader, EthSpec, Hash256, SignedBeaconBlock, Slot};
|
||||
|
||||
use crate::updater::{get_beacon_block, get_header, get_validators};
|
||||
@@ -47,7 +48,7 @@ pub struct UpdateHandler<E: EthSpec> {
|
||||
pub blockprint: Option<WatchBlockprintClient>,
|
||||
pub config: Config,
|
||||
pub slots_per_epoch: u64,
|
||||
pub spec: WatchSpec<E>,
|
||||
pub _phantom: PhantomData<E>,
|
||||
}
|
||||
|
||||
impl<E: EthSpec> UpdateHandler<E> {
|
||||
@@ -84,7 +85,7 @@ impl<E: EthSpec> UpdateHandler<E> {
|
||||
blockprint,
|
||||
config: config.updater,
|
||||
slots_per_epoch: spec.slots_per_epoch(),
|
||||
spec,
|
||||
_phantom: PhantomData,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user