forked from TrueCloudLab/neoneo-go
Merge pull request #1136 from nspcc-dev/neo3/consensus/fix
consensus: prevent `invalid message` panic
This commit is contained in:
commit
59d1013a8f
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ func (s *service) OnPayload(cp *Payload) {
|
|||
}
|
||||
|
||||
// decode payload data into message
|
||||
if cp.message == nil {
|
||||
if cp.message.payload == nil {
|
||||
if err := cp.decodeData(); err != nil {
|
||||
log.Debug("can't decode payload data")
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue