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

FR: debug_standardTraceBlockToFile #1758

Closed
MysticRyuujin opened this issue Apr 20, 2021 · 2 comments
Closed

FR: debug_standardTraceBlockToFile #1758

MysticRyuujin opened this issue Apr 20, 2021 · 2 comments

Comments

@MysticRyuujin
Copy link
Contributor

Rationale

#1458

Any chance we could get debug_standardTraceBlockToFile soon? I'm looking at adding a feature to ArchiveNode where we can handle these large debugs, where a user can request the debug, we'll run debug_standardTraceBlockToFile on the block, zip that file, and return an IPFS hash (or serve it back as a download).

It would equally cool to have debug_standardTraceTransactionToFile which would be 1 upping Geth here lol

Implementation

Do you have ideas regarding the implementation of this feature?
Geth already has this.

Are you willing to implement this feature?
😞

@MysticRyuujin
Copy link
Contributor Author

MysticRyuujin commented Apr 20, 2021

Actually nevermind on the debug_standardTraceTransactionToFile the method already traces each transaction individually or lets me specify a specific transaction.

Here's an example of how it works:

curl -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"debug_standardTraceBlockToFile","params":["0x0627c2e829d606bcf19703d5c9f6967211ec2296f76e51f57124e2fc0e4e075c",{"txHash":"0x36ff2af6044075f1d37b090c6c07779bc7b4f05cdc731ba4fca4107f85e5686c"}],"id":1}' http://localhost:8545

{"jsonrpc":"2.0","id":1,"result":["/tmp/block_0x0627c2e8-250-0x36ff2af6-361212364"]}

@MysticRyuujin
Copy link
Contributor Author

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

No branches or pull requests

2 participants