Skip to content

Commit

Permalink
Merge pull request #669 from WhoSoup/FD-886_election_tweak
Browse files Browse the repository at this point in the history
FD-886 Prevent syncmsgs arriving from the network
  • Loading branch information
carryforward committed Mar 15, 2019
2 parents d2e5799 + 120dd8a commit fb3f57b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/messages/electionMsgs/syncMsg.go
Expand Up @@ -153,6 +153,9 @@ func (m *SyncMsg) Type() byte {
}

func (m *SyncMsg) Validate(state interfaces.IState) int {
if !m.IsLocal() { // FD-886, only accept local messages
return -1
}
//TODO: Must be validated
return 1
}
Expand Down

0 comments on commit fb3f57b

Please sign in to comment.