From 671e1d1b413d52395e2568df76f66adcf08a85a5 Mon Sep 17 00:00:00 2001 From: "mark.lin" Date: Mon, 19 Jun 2017 17:02:54 +0800 Subject: [PATCH] consensus/istanbul: add faulty mode comments --- consensus/istanbul/config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/consensus/istanbul/config.go b/consensus/istanbul/config.go index 3fc8004fd3c2..cb97ccaebceb 100644 --- a/consensus/istanbul/config.go +++ b/consensus/istanbul/config.go @@ -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 )