mirror of
https://github.com/status-im/whisper.git
synced 2025-01-20 23:59:21 +00:00
Comment out whisper remove identity stubs
This commit is contained in:
parent
9f7640db03
commit
9e83aab7e2
16
whisper.go
16
whisper.go
@ -116,14 +116,14 @@ func (self *Whisper) GetIdentity(key *ecdsa.PublicKey) *ecdsa.PrivateKey {
|
||||
return self.keys[string(crypto.FromECDSAPub(key))]
|
||||
}
|
||||
|
||||
func (self *Whisper) RemoveIdentity(key *ecdsa.PublicKey) bool {
|
||||
k := string(crypto.FromECDSAPub(key))
|
||||
if _, ok := self.keys[k]; ok {
|
||||
delete(self.keys, k)
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
// func (self *Whisper) RemoveIdentity(key *ecdsa.PublicKey) bool {
|
||||
// k := string(crypto.FromECDSAPub(key))
|
||||
// if _, ok := self.keys[k]; ok {
|
||||
// delete(self.keys, k)
|
||||
// return true
|
||||
// }
|
||||
// return false
|
||||
// }
|
||||
|
||||
func (self *Whisper) Watch(opts Filter) int {
|
||||
return self.filters.Install(filter.Generic{
|
||||
|
Loading…
x
Reference in New Issue
Block a user