Update constants / types to match specs as of 23.1.19

This commit is contained in:
Kirk Baird
2019-01-23 15:04:40 +11:00
parent 038e32a303
commit 560dbe4ae1
12 changed files with 219 additions and 71 deletions

View File

@@ -4,7 +4,7 @@ use protos::services::{
};
use protos::services_grpc::BeaconBlockServiceClient;
use ssz::{ssz_encode, Decodable};
use types::{BeaconBlock, BeaconBlockBody, Hash256, Signature};
use types::{BeaconBlock, BeaconBlockBody, Eth1Data, Hash256, Signature};
impl BeaconNode for BeaconBlockServiceClient {
/// Request a Beacon Node (BN) to produce a new block at the supplied slot.
@@ -31,7 +31,10 @@ impl BeaconNode for BeaconBlockServiceClient {
parent_root: Hash256::zero(),
state_root: Hash256::zero(),
randao_reveal: Hash256::from(block.get_randao_reveal()),
candidate_pow_receipt_root: Hash256::zero(),
eth1_data: Eth1Data {
deposit_root: Hash256::zero(),
block_hash: Hash256::zero(),
},
signature,
body: BeaconBlockBody {
proposer_slashings: vec![],