Make BeaconChainTypes Send + Sync + 'static

This commit is contained in:
Paul Hauner
2019-08-22 16:34:21 +10:00
parent 5a34f86e77
commit 853344af8a
8 changed files with 19 additions and 23 deletions

View File

@@ -54,8 +54,8 @@ where
impl<L, E> BeaconChainTypes for CommonTypes<L, E>
where
L: LmdGhost<MemoryStore, E>,
E: EthSpec,
L: LmdGhost<MemoryStore, E> + 'static,
E: EthSpec + 'static,
{
type Store = MemoryStore;
type SlotClock = TestingSlotClock;
@@ -69,8 +69,8 @@ where
/// Used for testing.
pub struct BeaconChainHarness<L, E>
where
L: LmdGhost<MemoryStore, E>,
E: EthSpec,
L: LmdGhost<MemoryStore, E> + 'static,
E: EthSpec + 'static,
{
pub chain: BeaconChain<CommonTypes<L, E>>,
pub keypairs: Vec<Keypair>,