Remove Redundant Trait Bound (#4169)
I realized this is redundant while reasoning about how the `store` is implemented given the [definition of `ItemStore`](https://github.com/sigp/lighthouse/blob/v4.0.1/beacon_node/store/src/lib.rs#L107) ```rust pub trait ItemStore<E: EthSpec>: KeyValueStore<E> + Sync + Send + Sized + 'static { ... } ```
This commit is contained in:
parent
0e2e23e088
commit
00cf5fc184
@ -1,6 +1,6 @@
|
|||||||
//! Implementation of historic state reconstruction (given complete block history).
|
//! Implementation of historic state reconstruction (given complete block history).
|
||||||
use crate::hot_cold_store::{HotColdDB, HotColdDBError};
|
use crate::hot_cold_store::{HotColdDB, HotColdDBError};
|
||||||
use crate::{Error, ItemStore, KeyValueStore};
|
use crate::{Error, ItemStore};
|
||||||
use itertools::{process_results, Itertools};
|
use itertools::{process_results, Itertools};
|
||||||
use slog::info;
|
use slog::info;
|
||||||
use state_processing::{
|
use state_processing::{
|
||||||
@ -13,8 +13,8 @@ use types::{EthSpec, Hash256};
|
|||||||
impl<E, Hot, Cold> HotColdDB<E, Hot, Cold>
|
impl<E, Hot, Cold> HotColdDB<E, Hot, Cold>
|
||||||
where
|
where
|
||||||
E: EthSpec,
|
E: EthSpec,
|
||||||
Hot: KeyValueStore<E> + ItemStore<E>,
|
Hot: ItemStore<E>,
|
||||||
Cold: KeyValueStore<E> + ItemStore<E>,
|
Cold: ItemStore<E>,
|
||||||
{
|
{
|
||||||
pub fn reconstruct_historic_states(self: &Arc<Self>) -> Result<(), Error> {
|
pub fn reconstruct_historic_states(self: &Arc<Self>) -> Result<(), Error> {
|
||||||
let mut anchor = if let Some(anchor) = self.get_anchor_info() {
|
let mut anchor = if let Some(anchor) = self.get_anchor_info() {
|
||||||
|
Loading…
Reference in New Issue
Block a user