feat(sensor): support more rpc methods #862
Quality Gate passed
Annotations
Check failure on line 53 in cmd/p2p/sensor/rpc.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZy0JiLgoOl007uiBGTJ&open=AZy0JiLgoOl007uiBGTJ&pullRequest=862
Check failure on line 682 in cmd/p2p/sensor/rpc.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZyVClv8ON3-4rlGnSrf&open=AZyVClv8ON3-4rlGnSrf&pullRequest=862
Check failure on line 594 in cmd/p2p/sensor/rpc.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZyVClv8ON3-4rlGnSre&open=AZyVClv8ON3-4rlGnSre&pullRequest=862
Check failure on line 63 in cmd/p2p/sensor/api.go
sonarqubecloud / SonarCloud Code Analysis
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZ0EsRrQuLbE7AhQd-dq&open=AZ0EsRrQuLbE7AhQd-dq&pullRequest=862
Check failure on line 419 in cmd/p2p/sensor/rpc.go
sonarqubecloud / SonarCloud Code Analysis
Define a constant instead of duplicating this literal "invalid block hash parameter" 3 times.
See more on https://sonarcloud.io/project/issues?id=0xPolygon_polygon-cli&issues=AZyVClv8ON3-4rlGnSrc&open=AZyVClv8ON3-4rlGnSrc&pullRequest=862