Fix rebase conflicts
This commit is contained in:
parent
41567194e9
commit
3676ce78b5
@ -204,8 +204,10 @@ impl<const MAX_ATTEMPTS: u8> slog::Value for SingleBlockRequest<MAX_ATTEMPTS> {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use types::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
use types::{
|
||||||
use types::{MinimalEthSpec as E, SignedBeaconBlock};
|
test_utils::{SeedableRng, TestRandom, XorShiftRng},
|
||||||
|
MinimalEthSpec as E, SignedBeaconBlock,
|
||||||
|
};
|
||||||
|
|
||||||
fn rand_block() -> SignedBeaconBlock<E> {
|
fn rand_block() -> SignedBeaconBlock<E> {
|
||||||
let mut rng = XorShiftRng::from_seed([42; 16]);
|
let mut rng = XorShiftRng::from_seed([42; 16]);
|
||||||
|
@ -13,8 +13,10 @@ use slog::{Drain, Level};
|
|||||||
use slot_clock::SystemTimeSlotClock;
|
use slot_clock::SystemTimeSlotClock;
|
||||||
use store::MemoryStore;
|
use store::MemoryStore;
|
||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
use types::test_utils::{SeedableRng, TestRandom, XorShiftRng};
|
use types::{
|
||||||
use types::MinimalEthSpec as E;
|
test_utils::{SeedableRng, TestRandom, XorShiftRng},
|
||||||
|
MinimalEthSpec as E, SignedBeaconBlock,
|
||||||
|
};
|
||||||
|
|
||||||
type T = Witness<SystemTimeSlotClock, CachingEth1Backend<E>, E, MemoryStore<E>, MemoryStore<E>>;
|
type T = Witness<SystemTimeSlotClock, CachingEth1Backend<E>, E, MemoryStore<E>, MemoryStore<E>>;
|
||||||
|
|
||||||
|
@ -372,26 +372,23 @@ where
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::service::RequestId;
|
|
||||||
use crate::sync::range_sync::ByRangeRequestType;
|
|
||||||
use crate::NetworkMessage;
|
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::beacon_processor::WorkEvent as BeaconWorkEvent;
|
|
||||||
use beacon_chain::builder::Witness;
|
|
||||||
use beacon_chain::eth1_chain::CachingEth1Backend;
|
|
||||||
use beacon_chain::parking_lot::RwLock;
|
|
||||||
use beacon_chain::EngineState;
|
|
||||||
use lighthouse_network::rpc::BlocksByRangeRequest;
|
|
||||||
use lighthouse_network::Request;
|
|
||||||
use lighthouse_network::{rpc::StatusMessage, NetworkGlobals};
|
|
||||||
use slog::{o, Drain};
|
|
||||||
use tokio::sync::mpsc;
|
|
||||||
|
|
||||||
|
use crate::beacon_processor::WorkEvent as BeaconWorkEvent;
|
||||||
|
use crate::service::RequestId;
|
||||||
|
use crate::NetworkMessage;
|
||||||
|
use beacon_chain::{
|
||||||
|
builder::Witness, eth1_chain::CachingEth1Backend, parking_lot::RwLock, EngineState,
|
||||||
|
};
|
||||||
|
use lighthouse_network::{
|
||||||
|
rpc::{BlocksByRangeRequest, StatusMessage},
|
||||||
|
NetworkGlobals, Request,
|
||||||
|
};
|
||||||
|
use slog::{o, Drain};
|
||||||
use slot_clock::SystemTimeSlotClock;
|
use slot_clock::SystemTimeSlotClock;
|
||||||
use std::collections::HashSet;
|
use std::{collections::HashSet, sync::Arc};
|
||||||
use std::sync::Arc;
|
|
||||||
use store::MemoryStore;
|
use store::MemoryStore;
|
||||||
|
use tokio::sync::mpsc;
|
||||||
use types::{Hash256, MinimalEthSpec as E};
|
use types::{Hash256, MinimalEthSpec as E};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
Loading…
Reference in New Issue
Block a user