Skip to content

Commit

Permalink
Merge pull request #5 from MinaFoundation/print-invalid-subs
Browse files Browse the repository at this point in the history
PM-1726 Log invalid submissions
  • Loading branch information
piotr-iohk authored Jun 7, 2024
2 parents 80a404f + eea6ab9 commit 9596834
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ func main() {
if err != nil {
log.Fatalf("Error updating submissions: %v", err)
}

log.Info("Invalid submissions:")
for _, sub := range verifiedSubmissions {
if sub.ValidationError != "" || !sub.Verified {
log.Infof("[INVALID] Submitter: %s, Block hash: %s, Submitted at: %s, Validation error: %s, Verified: %v",
sub.Submitter, sub.BlockHash, sub.SubmittedAt, sub.ValidationError, sub.Verified)
}
}
}
}

Expand Down

0 comments on commit 9596834

Please sign in to comment.