aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-11-24 16:37:29 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-11-26 20:38:53 +0800
commitb1e014344494d2713f6091299a5b86dc53e1fb4e (patch)
treef40651917362c3a70160011f87808f62c37ecee3 /xeth
parent6bb29aebeefc64c765f0a2b5ab66f85d928f56cd (diff)
downloaddexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.gz
dexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.tar.zst
dexon-b1e014344494d2713f6091299a5b86dc53e1fb4e.zip
cmd, crypto: fixed nil public keys and updated web3
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 19c42a9a3..a45ce688b 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -644,7 +644,9 @@ func (p *XEth) NewWhisperFilter(to, from string, topics [][]string) int {
callback := func(msg WhisperMessage) {
p.messagesMu.RLock() // Only read lock to the filter pool
defer p.messagesMu.RUnlock()
- p.messages[id].insert(msg)
+ if p.messages[id] != nil {
+ p.messages[id].insert(msg)
+ }
}
// Initialize the core whisper filter and wrap into xeth
id = p.Whisper().Watch(to, from, topics, callback)