mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
Fix Schlesi-splitting penalty bug (#1166)
* Fix Schlesi-splitting penalty bug * Print correct spec version in lcli
This commit is contained in:
@@ -56,6 +56,8 @@ pub trait EthSpec: 'static + Default + Sync + Send + Clone + Debug + PartialEq {
|
||||
|
||||
fn default_spec() -> ChainSpec;
|
||||
|
||||
fn spec_name() -> &'static str;
|
||||
|
||||
fn genesis_epoch() -> Epoch {
|
||||
Epoch::new(Self::GenesisEpoch::to_u64())
|
||||
}
|
||||
@@ -159,6 +161,10 @@ impl EthSpec for MainnetEthSpec {
|
||||
fn default_spec() -> ChainSpec {
|
||||
ChainSpec::mainnet()
|
||||
}
|
||||
|
||||
fn spec_name() -> &'static str {
|
||||
"mainnet"
|
||||
}
|
||||
}
|
||||
|
||||
pub type FoundationBeaconState = BeaconState<MainnetEthSpec>;
|
||||
@@ -196,6 +202,10 @@ impl EthSpec for MinimalEthSpec {
|
||||
fn default_spec() -> ChainSpec {
|
||||
ChainSpec::minimal()
|
||||
}
|
||||
|
||||
fn spec_name() -> &'static str {
|
||||
"minimal"
|
||||
}
|
||||
}
|
||||
|
||||
pub type MinimalBeaconState = BeaconState<MinimalEthSpec>;
|
||||
@@ -231,6 +241,10 @@ impl EthSpec for InteropEthSpec {
|
||||
fn default_spec() -> ChainSpec {
|
||||
ChainSpec::interop()
|
||||
}
|
||||
|
||||
fn spec_name() -> &'static str {
|
||||
"interop"
|
||||
}
|
||||
}
|
||||
|
||||
pub type InteropBeaconState = BeaconState<InteropEthSpec>;
|
||||
|
||||
Reference in New Issue
Block a user