ui/qt/qwhisper, whisper, xeth: polish topic filter, fix wildcards

This commit is contained in:
Péter Szilágyi
2015-04-22 12:50:48 +03:00
parent ae4bfc3cfb
commit db615a85ec
7 changed files with 215 additions and 45 deletions

View File

@ -71,7 +71,7 @@ func (self *Whisper) Watch(to, from string, topics [][]string, fn func(WhisperMe
filter := whisper.Filter{
To: crypto.ToECDSAPub(common.FromHex(to)),
From: crypto.ToECDSAPub(common.FromHex(from)),
Topics: whisper.NewTopicFilterFromStrings(topics...),
Topics: whisper.NewFilterTopicsFromStrings(topics...),
}
filter.Fn = func(message *whisper.Message) {
fn(NewWhisperMessage(message))