diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-15 20:05:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-15 20:05:15 +0800 |
commit | 7bf2ae0b116fff0fede5b1455c5fda20caf98252 (patch) | |
tree | 3a982f8fb8ee376ef2a55e8188923afc19442203 /ethutil | |
parent | 2734fc407959c0723889aabb20f0e0f1a49e490f (diff) | |
download | go-tangerine-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar go-tangerine-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.gz go-tangerine-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.bz2 go-tangerine-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.lz go-tangerine-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.xz go-tangerine-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.zst go-tangerine-7bf2ae0b116fff0fede5b1455c5fda20caf98252.zip |
Removed old tx pool notification system. Fixes #19
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/reactor.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethutil/reactor.go b/ethutil/reactor.go index f8084986c..7cf145245 100644 --- a/ethutil/reactor.go +++ b/ethutil/reactor.go @@ -46,6 +46,7 @@ func (e *ReactorEvent) Remove(ch chan React) { // Basic reactor resource type React struct { Resource interface{} + Event string } // The reactor basic engine. Acts as bridge @@ -81,6 +82,6 @@ func (reactor *ReactorEngine) Unsubscribe(event string, ch chan React) { func (reactor *ReactorEngine) Post(event string, resource interface{}) { ev := reactor.patterns[event] if ev != nil { - ev.Post(React{Resource: resource}) + ev.Post(React{Resource: resource, Event: event}) } } |