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

@@ -115,7 +115,9 @@ impl<T: BeaconChainTypes> ValidatorService for ValidatorServiceInstance<T> {
};
// get attestation duties and check if validator is active
let attestation_duties = match state.get_attestation_duties(val_index, &spec) {
let attestation_duties = match state
.get_attestation_duties(val_index, RelativeEpoch::Current)
{
Ok(Some(v)) => v,
Ok(_) => {
// validator is inactive, go to the next validator