Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
blindchaser committed Jan 9, 2025
1 parent c5603bd commit e0f85a9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions evmrpc/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ func (a *SubscriptionAPI) Logs(ctx context.Context, filter *filters.FilterCriter

// when fromBlock is 0 and toBlock is latest, treat it as
// no fromBlock and toBlock specified
if filter.FromBlock != nil && filter.FromBlock.Int64() == 0 &&
filter.ToBlock != nil && filter.ToBlock.Int64() < 0 {
unboundedFilter := &filters.FilterCriteria{
BlockHash: nil,
Addresses: filter.Addresses,
Topics: filter.Topics,
}
filter = unboundedFilter
}
// if filter.FromBlock != nil && filter.FromBlock.Int64() == 0 &&
// filter.ToBlock != nil && filter.ToBlock.Int64() < 0 {
// unboundedFilter := &filters.FilterCriteria{
// BlockHash: nil,
// Addresses: filter.Addresses,
// Topics: filter.Topics,
// }
// filter = unboundedFilter
// }

rpcSub := notifier.CreateSubscription()

Expand Down

0 comments on commit e0f85a9

Please sign in to comment.