|
|
|
@ -5,7 +5,7 @@ import ( |
|
|
|
|
|
|
|
|
|
"github.com/dedis/kyber/sign/schnorr" |
|
|
|
|
"github.com/ethereum/go-ethereum/rlp" |
|
|
|
|
consensus2 "github.com/harmony-one/harmony/consensus/proto" |
|
|
|
|
consensus_proto "github.com/harmony-one/harmony/api/consensus" |
|
|
|
|
"github.com/harmony-one/harmony/core/types" |
|
|
|
|
"github.com/harmony-one/harmony/crypto" |
|
|
|
|
"github.com/harmony-one/harmony/internal/attack" |
|
|
|
@ -44,7 +44,7 @@ func (consensus *Consensus) ProcessMessageValidator(message []byte) { |
|
|
|
|
func (consensus *Consensus) processAnnounceMessage(payload []byte) { |
|
|
|
|
consensus.Log.Info("Received Announce Message", "Size", len(payload), "nodeID", consensus.nodeID) |
|
|
|
|
|
|
|
|
|
message := consensus2.Message{} |
|
|
|
|
message := consensus_proto.Message{} |
|
|
|
|
message.XXX_Unmarshal(payload) |
|
|
|
|
|
|
|
|
|
consensusID := message.ConsensusId |
|
|
|
@ -119,7 +119,7 @@ func (consensus *Consensus) processAnnounceMessage(payload []byte) { |
|
|
|
|
// Processes the challenge message sent from the leader
|
|
|
|
|
func (consensus *Consensus) processChallengeMessage(payload []byte, targetState State) { |
|
|
|
|
consensus.Log.Info("Received Challenge Message", "Size", len(payload), "nodeID", consensus.nodeID) |
|
|
|
|
message := consensus2.Message{} |
|
|
|
|
message := consensus_proto.Message{} |
|
|
|
|
message.XXX_Unmarshal(payload) |
|
|
|
|
|
|
|
|
|
consensusID := message.ConsensusId |
|
|
|
@ -264,7 +264,7 @@ func (consensus *Consensus) processChallengeMessage(payload []byte, targetState |
|
|
|
|
|
|
|
|
|
// Processes the collective signature message sent from the leader
|
|
|
|
|
func (consensus *Consensus) processCollectiveSigMessage(payload []byte) { |
|
|
|
|
message := consensus2.Message{} |
|
|
|
|
message := consensus_proto.Message{} |
|
|
|
|
message.XXX_Unmarshal(payload) |
|
|
|
|
|
|
|
|
|
consensusID := message.ConsensusId |
|
|
|
|