Do first pass on Grants code

This commit is contained in:
Paul Hauner
2019-08-07 13:20:15 +10:00
parent ce73705498
commit 2c3fc318ba
4 changed files with 141 additions and 17 deletions

View File

@@ -630,7 +630,12 @@ impl<T: BeaconChainTypes> SimpleSync<T> {
_network: &mut NetworkContext<T::EthSpec>,
) {
match self.chain.process_attestation(msg) {
Ok(()) => info!(self.log, "ImportedAttestation"; "source" => "gossip"),
Ok(outcome) => info!(
self.log,
"Processed attestation";
"source" => "gossip",
"outcome" => format!("{:?}", outcome)
),
Err(e) => {
warn!(self.log, "InvalidAttestation"; "source" => "gossip", "error" => format!("{:?}", e))
}