mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-30 11:24:31 +00:00
Build validator client AttestationProducer
This commit is contained in:
@@ -38,7 +38,7 @@ impl EpochDuty {
|
||||
// if the validator is required to attest to a shard, create the data
|
||||
let mut attestation_duty = None;
|
||||
if self.attestation_duty.slot == slot {
|
||||
attestation_duty = self.attestation_duty
|
||||
attestation_duty = Some(self.attestation_duty)
|
||||
}
|
||||
|
||||
if produce_block | attestation_duty.is_some() {
|
||||
@@ -60,7 +60,7 @@ impl fmt::Display for EpochDuty {
|
||||
write!(
|
||||
f,
|
||||
"produce block slot: {}, attestation slot: {}, attestation shard: {}",
|
||||
display_block, self.attestation_slot, self.attestation_shard
|
||||
display_block, self.attestation_duty.slot, self.attestation_duty.shard
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user