ethereum: document use of Removed field for SubscribeFilterLogs

This commit is contained in:
Felix Lange 2016-12-04 19:43:59 +01:00
parent f52a1ae849
commit f138374027

@ -152,6 +152,9 @@ type FilterQuery struct {
// LogFilterer provides access to contract log events using a one-off query or continuous // LogFilterer provides access to contract log events using a one-off query or continuous
// event subscription. // 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 { type LogFilterer interface {
FilterLogs(ctx context.Context, q FilterQuery) ([]vm.Log, error) FilterLogs(ctx context.Context, q FilterQuery) ([]vm.Log, error)
SubscribeFilterLogs(ctx context.Context, q FilterQuery, ch chan<- vm.Log) (Subscription, error) SubscribeFilterLogs(ctx context.Context, q FilterQuery, ch chan<- vm.Log) (Subscription, error)