Skip to content

Commit

Permalink
fix: support getFilterChanges after NewFinalizedHeaderFilter (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBSC authored May 23, 2023
1 parent 7b7d8c1 commit 8d763bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/filters/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ func (api *PublicFilterAPI) GetFilterChanges(id rpc.ID) (interface{}, error) {
f.deadline.Reset(api.timeout)

switch f.typ {
case PendingTransactionsSubscription, BlocksSubscription, VotesSubscription:
case PendingTransactionsSubscription, BlocksSubscription, FinalizedHeadersSubscription, VotesSubscription:
hashes := f.hashes
f.hashes = nil
return returnHashes(hashes), nil
Expand Down

0 comments on commit 8d763bc

Please sign in to comment.