Switch runtime fork choice to optimized
This commit is contained in:
parent
08bf5817c9
commit
5b425c9bf3
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user