aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-15 20:05:15 +0800
committerobscuren <geffobscura@gmail.com>2014-05-15 20:05:15 +0800
commit7bf2ae0b116fff0fede5b1455c5fda20caf98252 (patch)
tree3a982f8fb8ee376ef2a55e8188923afc19442203 /ethutil
parent2734fc407959c0723889aabb20f0e0f1a49e490f (diff)
downloaddexon-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar
dexon-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.gz
dexon-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.bz2
dexon-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.lz
dexon-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.xz
dexon-7bf2ae0b116fff0fede5b1455c5fda20caf98252.tar.zst
dexon-7bf2ae0b116fff0fede5b1455c5fda20caf98252.zip
Removed old tx pool notification system. Fixes #19
Diffstat (limited to 'ethutil')
-rw-r--r--ethutil/reactor.go3
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})
}
}