Added error handling for waku handshake DecodeRLP
This commit is contained in:
parent
042ae30f9f
commit
a50e35b72d
|
@ -171,6 +171,9 @@ loop:
|
|||
}
|
||||
|
||||
key, keyType, err := o.decodeKey(s)
|
||||
if err != nil {
|
||||
return fmt.Errorf("key decode failure: %v", err)
|
||||
}
|
||||
o.setKeyType(keyType)
|
||||
|
||||
// Skip processing if a key does not exist.
|
||||
|
|
Loading…
Reference in New Issue