Switch runtime fork choice to optimized

This commit is contained in:
Paul Hauner 2019-05-31 17:53:52 +10:00
parent 08bf5817c9
commit 5b425c9bf3
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -1,5 +1,5 @@
use beacon_chain::{ use beacon_chain::{
fork_choice::BitwiseLMDGhost, fork_choice::OptimizedLMDGhost,
slot_clock::SystemTimeSlotClock, slot_clock::SystemTimeSlotClock,
store::{DiskStore, MemoryStore, Store}, store::{DiskStore, MemoryStore, Store},
BeaconChain, BeaconChainTypes, BeaconChain, BeaconChainTypes,
@ -28,7 +28,7 @@ pub struct TestnetMemoryBeaconChainTypes;
impl BeaconChainTypes for TestnetMemoryBeaconChainTypes { impl BeaconChainTypes for TestnetMemoryBeaconChainTypes {
type Store = MemoryStore; type Store = MemoryStore;
type SlotClock = SystemTimeSlotClock; type SlotClock = SystemTimeSlotClock;
type ForkChoice = BitwiseLMDGhost<Self::Store, Self::EthSpec>; type ForkChoice = OptimizedLMDGhost<Self::Store, Self::EthSpec>;
type EthSpec = LighthouseTestnetEthSpec; type EthSpec = LighthouseTestnetEthSpec;
} }
@ -45,7 +45,7 @@ pub struct TestnetDiskBeaconChainTypes;
impl BeaconChainTypes for TestnetDiskBeaconChainTypes { impl BeaconChainTypes for TestnetDiskBeaconChainTypes {
type Store = DiskStore; type Store = DiskStore;
type SlotClock = SystemTimeSlotClock; type SlotClock = SystemTimeSlotClock;
type ForkChoice = BitwiseLMDGhost<Self::Store, Self::EthSpec>; type ForkChoice = OptimizedLMDGhost<Self::Store, Self::EthSpec>;
type EthSpec = LighthouseTestnetEthSpec; type EthSpec = LighthouseTestnetEthSpec;
} }