Update v0.12.0 to v0.12.1 (#1259)

This commit is contained in:
Michael Sproul
2020-06-11 10:07:10 +10:00
committed by GitHub
parent 7ce9a252a4
commit 39bf05e3e5
12 changed files with 20 additions and 23 deletions

View File

@@ -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)
}