More progress towards getting the attester working.

This commit is contained in:
Luke Anderson
2019-03-28 09:38:39 +11:00
parent 16706d322f
commit bda381a264
2 changed files with 87 additions and 79 deletions

View File

@@ -99,6 +99,8 @@ impl<T: SlotClock, U: BeaconNode, V: DutiesReader, W: Signer> Attester<T, U, V,
None => return Ok(PollOutcome::BeaconNodeUnableToProduceAttestation(slot)),
};
dbg!(&attestation_data);
if !self.safe_to_produce(&attestation_data) {
return Ok(PollOutcome::SlashableAttestationNotProduced(slot));
}