Skip to content

Commit

Permalink
Update blox.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Nov 6, 2023
1 parent 13b693a commit 0a6ccd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion blox/blox.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ func (p *Blox) validateAnnouncement(ctx context.Context, id peer.ID, msg *pubsub
log.Errorw("peer is not an approved member", "peer", id)
return false
}
case PoolJoinRequestAnnouncementType, PoolJoinApproveAnnouncementType, IExistAnnouncementType:
case PoolJoinRequestAnnouncementType:
if status != blockchain.Unknown {
log.Errorw("peer is no longer permitted to send this message type", "peer", id)
return false
}
case PoolJoinApproveAnnouncementType, IExistAnnouncementType:
// Any member status is valid for a pool join announcement
default:
return false
Expand Down

0 comments on commit 0a6ccd9

Please sign in to comment.