Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth: add traceCallBlock method #24874

Closed
wants to merge 1 commit into from
Closed

Conversation

s1na
Copy link
Contributor

@s1na s1na commented May 13, 2022

It hasn't been tested much. There's much room for improvement
e.g.:

> debug.traceCallBlock({number: '0x20', transactions: [{from: eth.accounts[0], value:"0x1", gasPrice: "0xffffffff", gas: "0xffff", input: "0x43"}]}, "latest")[0].result
{
  failed: false,
  gas: 53018,
  returnValue: "",
  structLogs: [{
      depth: 1,
      gas: 12519,
      gasCost: 2,
      op: "NUMBER",
      pc: 0,
      stack: []
  }, {
      depth: 1,
      gas: 12517,
      gasCost: 0,
      op: "STOP",
      pc: 1,
      stack: ["0x20"]
  }]
}

Co-authored-by: Martin Holst Swende <martin@swende.se>
@s1na
Copy link
Contributor Author

s1na commented Sep 27, 2022

Closing in favour of #25743

@s1na s1na closed this Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant