mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Update v0.12.0 to v0.12.1 (#1259)
This commit is contained in:
@@ -84,7 +84,5 @@ pub fn process_activations<T: EthSpec>(
|
||||
///
|
||||
/// Spec v0.11.1
|
||||
pub fn eth2_genesis_time(eth1_timestamp: u64, spec: &ChainSpec) -> Result<u64, ArithError> {
|
||||
eth1_timestamp
|
||||
.safe_sub(eth1_timestamp.safe_rem(spec.min_genesis_delay)?)?
|
||||
.safe_add(2.safe_mul(spec.min_genesis_delay)?)
|
||||
eth1_timestamp.safe_add(spec.genesis_delay)
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ pub struct ChainSpec {
|
||||
/*
|
||||
* Time parameters
|
||||
*/
|
||||
pub min_genesis_delay: u64,
|
||||
pub genesis_delay: u64,
|
||||
pub milliseconds_per_slot: u64,
|
||||
pub min_attestation_inclusion_delay: u64,
|
||||
pub min_seed_lookahead: Epoch,
|
||||
@@ -285,7 +285,7 @@ impl ChainSpec {
|
||||
/*
|
||||
* Time parameters
|
||||
*/
|
||||
min_genesis_delay: 86400, // 1 day
|
||||
genesis_delay: 172800, // 2 days
|
||||
milliseconds_per_slot: 12_000,
|
||||
min_attestation_inclusion_delay: 1,
|
||||
min_seed_lookahead: Epoch::new(1),
|
||||
@@ -354,7 +354,7 @@ impl ChainSpec {
|
||||
eth1_follow_distance: 16,
|
||||
genesis_fork_version: [0x00, 0x00, 0x00, 0x01],
|
||||
shard_committee_period: 64,
|
||||
min_genesis_delay: 300,
|
||||
genesis_delay: 300,
|
||||
milliseconds_per_slot: 6_000,
|
||||
safe_slots_to_update_justified: 2,
|
||||
network_id: 2, // lighthouse testnet network id
|
||||
@@ -459,7 +459,7 @@ pub struct YamlConfig {
|
||||
shuffle_round_count: u8,
|
||||
min_genesis_active_validator_count: u64,
|
||||
min_genesis_time: u64,
|
||||
min_genesis_delay: u64,
|
||||
genesis_delay: u64,
|
||||
min_deposit_amount: u64,
|
||||
max_effective_balance: u64,
|
||||
ejection_balance: u64,
|
||||
@@ -576,7 +576,7 @@ impl YamlConfig {
|
||||
shuffle_round_count: spec.shuffle_round_count,
|
||||
min_genesis_active_validator_count: spec.min_genesis_active_validator_count,
|
||||
min_genesis_time: spec.min_genesis_time,
|
||||
min_genesis_delay: spec.min_genesis_delay,
|
||||
genesis_delay: spec.genesis_delay,
|
||||
min_deposit_amount: spec.min_deposit_amount,
|
||||
max_effective_balance: spec.max_effective_balance,
|
||||
ejection_balance: spec.ejection_balance,
|
||||
@@ -674,7 +674,7 @@ impl YamlConfig {
|
||||
min_genesis_active_validator_count: self.min_genesis_active_validator_count,
|
||||
min_genesis_time: self.min_genesis_time,
|
||||
min_deposit_amount: self.min_deposit_amount,
|
||||
min_genesis_delay: self.min_genesis_delay,
|
||||
genesis_delay: self.genesis_delay,
|
||||
max_effective_balance: self.max_effective_balance,
|
||||
hysteresis_quotient: self.hysteresis_quotient,
|
||||
hysteresis_downward_multiplier: self.hysteresis_downward_multiplier,
|
||||
|
||||
Reference in New Issue
Block a user