diff --git a/beacon_node/beacon_chain/test_harness/examples/chain.yaml b/beacon_node/beacon_chain/test_harness/examples/chain.yaml index dd5aa7cc9..b7fdda9bf 100644 --- a/beacon_node/beacon_chain/test_harness/examples/chain.yaml +++ b/beacon_node/beacon_chain/test_harness/examples/chain.yaml @@ -10,27 +10,26 @@ test_cases: num_slots: 64 skip_slots: [2, 3] deposits: + # At slot 1, create a new validator deposit of 32 ETH. - slot: 1 amount: 32 - merkle_index: 0 + # Trigger more deposits... - slot: 3 amount: 32 - merkle_index: 1 - slot: 5 amount: 32 - merkle_index: 2 proposer_slashings: # At slot 2, trigger a proposer slashing for validator #42. - slot: 2 validator_index: 42 - # At slot 8, trigger a proposer slashing for validator #13. + # Trigger another slashing... - slot: 8 validator_index: 13 attester_slashings: # At slot 2, trigger an attester slashing for validators #11 and #12. - slot: 2 validator_indices: [11, 12] - # At slot 5, trigger an attester slashing for validator #14. + # Trigger another slashing... - slot: 5 validator_indices: [14] results: diff --git a/beacon_node/beacon_chain/test_harness/src/manifest/config.rs b/beacon_node/beacon_chain/test_harness/src/manifest/config.rs index 0e66a120b..be01d48d8 100644 --- a/beacon_node/beacon_chain/test_harness/src/manifest/config.rs +++ b/beacon_node/beacon_chain/test_harness/src/manifest/config.rs @@ -68,12 +68,17 @@ fn parse_deposits(yaml: &Yaml) -> Option> { let keypair = Keypair::random(); let proof_of_possession = create_proof_of_possession(&keypair); - let slot = as_u64(deposit, "slot").expect("Incomplete deposit"); + let slot = as_u64(deposit, "slot").expect("Incomplete deposit (slot)"); + let amount = + as_u64(deposit, "amount").expect("Incomplete deposit (amount)") * 1_000_000_000; + let deposit = Deposit { + // Note: `branch` and `index` will need to be updated once the spec defines their + // validity. branch: vec![], - index: as_u64(deposit, "merkle_index").unwrap(), + index: 0, deposit_data: DepositData { - amount: 32_000_000_000, + amount, timestamp: 1, deposit_input: DepositInput { pubkey: keypair.pk.clone(),