Skip to content

Commit

Permalink
consensus/istanbul: add faulty mode comments
Browse files Browse the repository at this point in the history
  • Loading branch information
markya0616 committed Dec 18, 2017
1 parent b7c79fb commit 671e1d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions consensus/istanbul/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,17 @@ const (
type FaultyMode uint64

const (
// Disabled disables the faulty mode
Disabled FaultyMode = iota
// Random selects one attack randomly
Random
// NotBroadcast doesn't broadcast any messages to other validators
NotBroadcast
// SendWrongMsg sends the message with the wrong message code
SendWrongMsg
// ModifySig modifies the message signature
ModifySig
// AlwaysPropose always proposes a proposal to validators
AlwaysPropose
)

Expand Down

0 comments on commit 671e1d1

Please sign in to comment.