mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
simplify the whisper fix
This commit is contained in:
parent
78e6c38a58
commit
45ef4745c1
1 changed files with 1 additions and 5 deletions
|
|
@ -307,11 +307,7 @@ func (self *Whisper) open(envelope *Envelope) *Message {
|
||||||
message.To = &key.PublicKey
|
message.To = &key.PublicKey
|
||||||
return message
|
return message
|
||||||
case ecies.ErrInvalidPublicKey:
|
case ecies.ErrInvalidPublicKey:
|
||||||
origMessage, err := envelope.Open(nil)
|
return message
|
||||||
if err != nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return origMessage
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Failed to decrypt, don't return anything
|
// Failed to decrypt, don't return anything
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue