Skip to content

Commit aeecb5f

Browse files
authored
Fix websocket from_height (#1853)
1 parent 8defdf4 commit aeecb5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

evmrpc/subscribe.go

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ func (a *SubscriptionAPI) Logs(ctx context.Context, filter *filters.FilterCriter
183183
return
184184
}
185185
begin = lastToHeight
186+
filter.FromBlock = big.NewInt(lastToHeight + 1)
186187

187188
time.Sleep(SleepInterval)
188189
}

0 commit comments

Comments
 (0)