Merge remote-tracking branch 'origin/unstable' into electra_attestation_changes

This commit is contained in:
Michael Sproul
2024-06-14 12:32:47 +10:00
34 changed files with 92 additions and 95 deletions

View File

@@ -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,

View File

@@ -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),

View File

@@ -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),

View File

@@ -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),

View File

@@ -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,
})
}