spec v0.6: update beacon_node, validator_client

This commit is contained in:
Michael Sproul
2019-06-03 16:13:51 +10:00
parent 7fbcdd54d7
commit 6bde64bd6a
7 changed files with 26 additions and 16 deletions

View File

@@ -140,7 +140,7 @@ impl<'a, B: BeaconNodeAttestation, S: Signer> AttestationProducer<'a, B, S> {
aggregation_bitfield,
data: attestation,
custody_bitfield,
aggregate_signature,
signature: aggregate_signature,
})
}

View File

@@ -100,7 +100,9 @@ impl<'a, B: BeaconNodeBlock, S: Signer> BlockProducer<'a, B, S> {
.produce_beacon_block(self.slot, &randao_reveal)?
{
if self.safe_to_produce(&block) {
let domain = self.spec.get_domain(epoch, Domain::BeaconBlock, &self.fork);
let domain = self
.spec
.get_domain(epoch, Domain::BeaconProposer, &self.fork);
if let Some(block) = self.sign_block(block, domain) {
self.beacon_node.publish_beacon_block(block)?;
Ok(ValidatorEvent::BlockProduced(self.slot))