Skip to content

rpc: excessive gasCost value for CALL opcode #13870

@Sixtysixter

Description

@Sixtysixter

System information

Erigon version: erigon version 3.01.0-dev-54548aca

OS & Version: Windows/Linux/OSX: ubuntu

Commit hash: 54548ac

Expected behaviour

CALL gasCost value consistent with the other cases

Actual behaviour

CALL gasCost seems to be excessive

Steps to reproduce the behaviour

Invove the following API:

{
  "jsonrpc":"2.0",
  "method":"debug_traceTransaction",
  "params":[
     "0x1c19a6e5089ff08b39144162f105f2d5519268f5360dab733d1b4f029503fdbe",
     {"disableStorage": true,"disableMemory": true,"disableStack": true}
  ],
  "id":1
}

Backtrace

The resulting JSON reports an incorrect gasCost value for the CALL operation at PC: 3930.

{
  "depth": 2,
  "error": "out of gas",
  "gas": 2795,
  "gasCost": 18158513697557842775,
  "op": "CALL",
  "pc": 3930
}

The complete JSON is attached.

test_134-rpcdaemon.json

[backtrace]

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions