Fix equal op in filecoin validation code

This commit is contained in:
ChronosX88 2020-12-02 18:27:50 +04:00
parent 56b8f311f3
commit 1cc5657ed1
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -176,7 +176,7 @@ func (ppp *PrePreparePool) IsValidPrePrepare(prePrepare *types2.Message) bool {
}
}
if msg.Type = ftypes.MessageTypeSecp256k1 {
if msg.Type == ftypes.MessageTypeSecp256k1 {
if err = sigs.Verify(msg.Signature, msg.Message.From.Bytes(), msg.Message.Cid().Bytes()); err != nil {
logrus.Errorf("Couldn't verify transaction %v", err)
}