Fix payload validation when chain checks returned error
This commit is contained in:
parent
2b05af3037
commit
7c347b0963
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user