|
|
|
@ -510,7 +510,7 @@ func (consensus *Consensus) verifySenderKey(msg *msg_pb.Message) (*bls.PublicKey |
|
|
|
|
senderAddr := common.BytesToAddress(addrBytes[:]) |
|
|
|
|
|
|
|
|
|
if !consensus.IsValidatorInCommittee(senderAddr) { |
|
|
|
|
return nil, fmt.Errorf("Validator address %s is not in committee", senderAddr) |
|
|
|
|
return nil, fmt.Errorf("Validator address %s is not in committee", senderAddr.Hex()) |
|
|
|
|
} |
|
|
|
|
return senderKey, nil |
|
|
|
|
} |
|
|
|
@ -525,7 +525,7 @@ func (consensus *Consensus) verifyViewChangeSenderKey(msg *msg_pb.Message) (*bls |
|
|
|
|
senderAddr := common.BytesToAddress(addrBytes[:]) |
|
|
|
|
|
|
|
|
|
if !consensus.IsValidatorInCommittee(senderAddr) { |
|
|
|
|
return nil, common.Address{}, fmt.Errorf("Validator address %s is not in committee", senderAddr) |
|
|
|
|
return nil, common.Address{}, fmt.Errorf("Validator address %s is not in committee", senderAddr.Hex()) |
|
|
|
|
} |
|
|
|
|
return senderKey, senderAddr, nil |
|
|
|
|
} |
|
|
|
|