Skip to content

Commit f138374

Browse files
committed
ethereum: document use of Removed field for SubscribeFilterLogs
1 parent f52a1ae commit f138374

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

interfaces.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ type FilterQuery struct {
152152

153153
// LogFilterer provides access to contract log events using a one-off query or continuous
154154
// event subscription.
155+
//
156+
// Logs received through a streaming query subscription may have Removed set to true,
157+
// indicating that the log was reverted due to a chain reorganisation.
155158
type LogFilterer interface {
156159
FilterLogs(ctx context.Context, q FilterQuery) ([]vm.Log, error)
157160
SubscribeFilterLogs(ctx context.Context, q FilterQuery, ch chan<- vm.Log) (Subscription, error)

0 commit comments

Comments
 (0)