Fix payload validation when chain checks returned error

This commit is contained in:
ChronosX88 2021-04-22 22:18:28 +03:00
parent 2b05af3037
commit 7c347b0963
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -172,6 +172,7 @@ func (ppp *PrePreparePool) IsValidPrePrepare(prePrepare *types2.Message) bool {
err := validationFunc(consensusMsg.Task.Payload) err := validationFunc(consensusMsg.Task.Payload)
if err != nil { if err != nil {
logrus.Errorf("payload validation has failed: %v", err) logrus.Errorf("payload validation has failed: %v", err)
return false
} }
} else { } else {
logrus.Debugf("Origin chain [%v]/request type[%v] doesn't have any payload validation!", consensusMsg.Task.OriginChain, consensusMsg.Task.RequestType) logrus.Debugf("Origin chain [%v]/request type[%v] doesn't have any payload validation!", consensusMsg.Task.OriginChain, consensusMsg.Task.RequestType)