From f1383740274a46a9a02f77f5d279f46daa122fae Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sun, 4 Dec 2016 19:43:59 +0100 Subject: [PATCH] ethereum: document use of Removed field for SubscribeFilterLogs --- interfaces.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interfaces.go b/interfaces.go index 5e38a90546..bbb204ff23 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)