Returns attestation duty for validator client processing

This commit is contained in:
Age Manning
2019-03-27 22:41:55 +11:00
parent 75195bbbf4
commit d3af95d1eb
3 changed files with 30 additions and 17 deletions

View File

@@ -272,7 +272,10 @@ impl Service {
if work_type.produce_block {
// TODO: Produce a beacon block in a new thread
}
if work_type.produce_attestation {
if work_type.attestation_duty.is_some() {
// available AttestationDuty info
let attestation_duty =
work_type.attestation_duty.expect("Cannot be None");
//TODO: Produce an attestation in a new thread
}
}