aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/events.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-17 23:10:34 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-17 23:10:34 +0800
commitdf2b70853ff0764c4fcb181547eee3a66f7bda4a (patch)
treea70bf06660283bcc83f6a499cf9fed808d347a06 /ethchain/events.go
parent3b709852846317d3456f55f906afc327ba76d6df (diff)
parentfa84e50ddb8e64d4cb92d58e235cfed13761f21e (diff)
downloadgo-tangerine-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar
go-tangerine-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.gz
go-tangerine-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.bz2
go-tangerine-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.lz
go-tangerine-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.xz
go-tangerine-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.zst
go-tangerine-df2b70853ff0764c4fcb181547eee3a66f7bda4a.zip
Merge pull request #58 from fjl/feature/event
Blocking event package
Diffstat (limited to 'ethchain/events.go')
-rw-r--r--ethchain/events.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/ethchain/events.go b/ethchain/events.go
new file mode 100644
index 000000000..05c21edfe
--- /dev/null
+++ b/ethchain/events.go
@@ -0,0 +1,10 @@
+package ethchain
+
+type TxEvent struct {
+ Type int // TxPre || TxPost
+ Tx *Transaction
+}
+
+type NewBlockEvent struct {
+ Block *Block
+}