Skip to content

system.ArgumentOutOfRangeException: Specified argument was out of the range of valid values with gas beyond 17M #10351

@avinashbo

Description

@avinashbo

Description

debug_traceCall calls fail when the gas value beyond 17M is used with version 1.36.0 while the call works as expected on 1.35.x versions

Steps to Reproduce
In order to replicate the behaviour, please provide a detailed list of steps:

  1. Have access to a Gnosis Mainnet node running on Nethermind 1.36.0
  2. Run the a debug_traceCall call with additional tracing parameters to reproduce the error mentioned
curl http://localhost:8545 \
-X POST -H "Content-Type: application/json" \
--data '
{
  "method": "debug_traceCall",
  "params": [
    {
      "from": "0x0000000000000000000000000000000000000000",
      "to": "0xadresss",
      "data": "0x",
      "value": "0x1",
      "gas": "0x1036641"
    },
    "0xXXXXXXX,
    {
        "tracer": "callTracer",
        "tracerConfig": {
            "onlyTopCall": false,
            "withLog": true
        },
        "blockOverrides": {
            "baseFee": "0x0",
            "gasLimit": "0xffffffffffffffff"
        }
    }
  ],
  "id": 1,
  "jsonrpc": "2.0"
}
'

Actual behavior

{"jsonrpc":"2.0","error":{"code":-32602,"message":"Specified argument was out of the range of valid values. (Parameter 'index')","data":"System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'index')\n   at Nethermind.Blockchain.Tracing.GethStyle.Custom.Native.Call.NativeCallTracer.BuildResult() in /nethermind/src/Nethermind/Nethermind.Blockchain/Tracing/GethStyle/Custom/Native/Call/NativeCallTracer.cs:line 59\n   at Nethermind.Blockchain.Tracing.BlockTracerBase`2.EndTxTrace() in /nethermind/src/Nethermind/Nethermind.Blockchain/Tracing/BlockTracerBase.cs:line 57\n   at Nethermind.Consensus.Processing.BlockProcessor.ProcessBlock(Block block, IBlockTracer blockTracer, ProcessingOptions options, IReleaseSpec spec, CancellationToken token) in /nethermind/src/Nethermind/Nethermind.Consensus/Processing/BlockProcessor.cs:line 95\n   at Nethermind.Consensus.Tracing.GethStyleTracer.TraceImpl(Block block, Hash256 txHash, CancellationToken cancellationToken, GethTraceOptions options, ProcessingOptions processingOptions) in /nethermind/src/Nethermind/Nethermind.Consensus/Tracing/GethStyleTracer.cs:line 173\n   at Nethermind.JsonRpc.Modules.DebugModule.DebugRpcModule.debug_traceCall(TransactionForRpc call, BlockParameter blockParameter, GethTraceOptions options) in /nethermind/src/Nethermind/Nethermind.JsonRpc/Modules/DebugModule/DebugRpcModule.cs:line 104\n   at System.Reflection.MethodInvoker.InvokeImpl(Object obj, Object arg1, Object arg2, Object arg3, Object arg4)\n   at Nethermind.JsonRpc.JsonRpcService.ExecuteAsync(JsonRpcRequest request, String methodName, ResolvedMethodInfo method, JsonRpcContext context) in /nethermind/src/Nethermind/Nethermind.JsonRpc/JsonRpcService.cs:line 131"},"id":1}$

Expected behavior

{"jsonrpc":"2.0","result":{"type":"CALL","from":"0x0000000000000000000000000000000000000000","to":"0xaddress","value":"0x1","gas":"0x1036641","gasUsed":"0x5208","input":"0x"},"id":1}$

Screenshots
If applicable, please include screenshots to help illustrate the problem.

Desktop (please complete the following information):
Please provide the following information regarding your setup:

  • Operating System: Linux
  • Version: Nethermind 1.36.0
  • Installation Method: Docker
  • Consensus Client: Lighthouse v8.0.1

Additional context
Please provide any additional context about the problem.

Logs
Please include any relevant logs that may help identify the issue.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions