aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-12-05 02:43:59 +0800
committerFelix Lange <fjl@twurst.com>2016-12-05 17:57:11 +0800
commitf1383740274a46a9a02f77f5d279f46daa122fae (patch)
treeccbc93cb799096fc3abc09b5ed1c628c02d62d6a /interfaces.go
parentf52a1ae849492480b6505ab7805305640518a568 (diff)
downloadgo-tangerine-f1383740274a46a9a02f77f5d279f46daa122fae.tar
go-tangerine-f1383740274a46a9a02f77f5d279f46daa122fae.tar.gz
go-tangerine-f1383740274a46a9a02f77f5d279f46daa122fae.tar.bz2
go-tangerine-f1383740274a46a9a02f77f5d279f46daa122fae.tar.lz
go-tangerine-f1383740274a46a9a02f77f5d279f46daa122fae.tar.xz
go-tangerine-f1383740274a46a9a02f77f5d279f46daa122fae.tar.zst
go-tangerine-f1383740274a46a9a02f77f5d279f46daa122fae.zip
ethereum: document use of Removed field for SubscribeFilterLogs
Diffstat (limited to 'interfaces.go')
-rw-r--r--interfaces.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/interfaces.go b/interfaces.go
index 5e38a9054..bbb204ff2 100644
--- a/interfaces.go
+++ b/interfaces.go
@@ -152,6 +152,9 @@ type FilterQuery struct {
// LogFilterer provides access to contract log events using a one-off query or continuous
// event subscription.
+//
+// Logs received through a streaming query subscription may have Removed set to true,
+// indicating that the log was reverted due to a chain reorganisation.
type LogFilterer interface {
FilterLogs(ctx context.Context, q FilterQuery) ([]vm.Log, error)
SubscribeFilterLogs(ctx context.Context, q FilterQuery, ch chan<- vm.Log) (Subscription, error)