maticnetwork / bor

Official repository for the Polygon Blockchain
https://polygon.technology/
GNU Lesser General Public License v3.0
986 stars 476 forks source link

cmd/utils: use defined filter api instance instead of a new one #1270

Closed manav2401 closed 1 week ago

manav2401 commented 1 week ago

Description

The eth_getLogs started to panic when it tried to fetch the chain config. This was because wrong instance of filter api was registered against the eth namespace which didn't have the config set during the upstream merge. This PR fixes that.

Changes

Breaking changes

Please complete this section if any breaking changes have been made, otherwise delete it

Nodes audience

In case this PR includes changes that must be applied only to a subset of nodes, please specify how you handled it (e.g. by adding a flag with a default value...)

Checklist

Cross repository changes

Testing

Manual tests

Please complete this section with the steps you performed if you ran manual tests for this functionality, otherwise delete it

Additional comments

Please post additional comments in this section if you have them, otherwise delete it