cmd, crypto: fixed nil public keys and updated web3

This commit is contained in:
Jeffrey Wilcke
2015-11-24 09:37:29 +01:00
parent 6bb29aebee
commit b1e0143444
3 changed files with 6278 additions and 996 deletions

View File

@ -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)