Skip to content

Commit

Permalink
add back has vote message broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Aug 19, 2024
1 parent 1571532 commit c98101d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions consensus/reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,12 @@ func (conR *Reactor) broadcastHasVoteMessage(vote *types.Vote) {
Type: vote.Type,
Index: vote.ValidatorIndex,
}
conR.Switch.Broadcast(p2p.Envelope{
ChannelID: StateChannel,
Message: msg,
})
go func() {
conR.Switch.Broadcast(p2p.Envelope{
ChannelID: StateChannel,
Message: msg,
})
}()
/*
// TODO: Make this broadcast more selective.
for _, peer := range conR.Switch.Peers().List() {
Expand Down

0 comments on commit c98101d

Please sign in to comment.