Added manual triggering of filters

This commit is contained in:
obscuren
2015-01-12 20:36:45 +01:00
parent 8a1b51c716
commit 34689cb3f3
5 changed files with 51 additions and 9 deletions

View File

@ -84,6 +84,10 @@ func (self *Whisper) Watch(opts map[string]interface{}, view *qml.Common) int {
return i
}
func (self *Whisper) Trigger(id int) {
go self.Whisper.Trigger(id)
}
func filterFromMap(opts map[string]interface{}) (f whisper.Filter) {
if to, ok := opts["to"].(string); ok {
f.To = crypto.ToECDSA(fromHex(to))