Extend ssz-static testing

This commit is contained in:
Paul Hauner
2019-05-15 09:50:05 +10:00
parent b6d8db3f72
commit 9f42d4d764
8 changed files with 46 additions and 17 deletions

View File

@@ -0,0 +1,23 @@
use types::{EthSpec, typenum::{U64, U8}, ChainSpec, FewValidatorsEthSpec};
use serde_derive::{Serialize, Deserialize};
/// "Minimal" testing specification, as defined here:
///
/// https://github.com/ethereum/eth2.0-specs/blob/v0.6.1/configs/constant_presets/minimal.yaml
///
/// Spec v0.6.1
#[derive(Clone, PartialEq, Debug, Default, Serialize, Deserialize)]
pub struct MinimalEthSpec;
impl EthSpec for MinimalEthSpec {
type ShardCount = U8;
type SlotsPerHistoricalRoot = U64;
type LatestRandaoMixesLength = U64;
type LatestActiveIndexRootsLength = U64;
type LatestSlashedExitLength = U64;
fn spec() -> ChainSpec {
// TODO: this spec is likely incorrect!
FewValidatorsEthSpec::spec()
}
}