erigon-pulse/cmd/rpcdaemon/cli
milen a7d5b55250
rpcdaemon: fix remote bor engine for trace transaction (#9214)
This PR fixes the below error when running a remote rpcdaemon for
Polygon debug_traceTransaction.

Request:
```
curl http://localhost:9545/ \
-X POST \
-H "Content-Type: application/json" \
--data '{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "debug_traceTransaction",
  "params": [
    "0xf265c04fc31c91eec9971e118f059322a910776ce40584114c351732ab01aec7",
    {
      "tracer": "callTracer",
      "borTraceEnabled": true,
      "borTx": true
    }
  ]
}'
```

Response:
```
{"jsonrpc":"2.0","id":0,"result":null,"error":{"code":-32000,"message":"method handler crashed"}}
```

Logs:
```
EROR[01-11|18:45:14.087] RPC method debug_traceTransaction crashed: interface conversion: *cli.remoteConsensusEngine is not consensus.Engine: missing method APIs
```
2024-01-15 13:26:39 +00:00
..
httpcfg Enable superfluous ws.port flag to fix some Hive RPC tests (#8909) 2023-12-07 14:59:22 +04:00
config_test.go bind-ipc (#8590) 2023-10-29 12:34:03 +07:00
config.go rpcdaemon: fix remote bor engine for trace transaction (#9214) 2024-01-15 13:26:39 +00:00
rpc_allow_list.go Replace ioutil with io and os (#3946) 2022-04-23 15:43:00 +01:00