Skip to content

Commit

Permalink
Revert verbosity changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrm50 committed May 22, 2024
1 parent ef8cd72 commit b2d13ad
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,7 @@ func (o *SybilProtection) TrackBlock(block *blocks.Block) {
return
}

if block == nil {
panic("what the fuck")
}

payload := block.Payload()
if payload == nil {
return
}
if payload.PayloadType() != iotago.PayloadCandidacyAnnouncement {
if payload := block.Payload(); payload == nil || payload.PayloadType() != iotago.PayloadCandidacyAnnouncement {
return
}

Expand Down

0 comments on commit b2d13ad

Please sign in to comment.