-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
Debug namespace re-structure #24808
Comments
@holiman do you still need go-ethereum/internal/ethapi/api.go Line 1882 in 16701c5
|
Nope |
Re the re-structuring, I feel like there are 2 categories that can be relatively cleanly separated from
Also it seems |
So I've prepared a proposal for the restructuring of the RPCs -- I'll hide it behind a drop down so it doesn't take over this issue. tldr; make ProposalCurrent method, right. Proposed methods, left. `engine` namespace omitted.
Next StepsThere are some other potential restructuring items that go beyond just naming. A few ideas:
What is the best order of these changes? Is it better to do the code maintenance first and then do the renaming, or vice versa? Or maybe spec first? I also plan to talk to some other client teams to determine if these debug methods are okay to standardize. |
Related: #21963 |
By the way, is geth support only "debug_traceCall"? That could completely implement "trace_call" |
The
debug
namespace is cluttered with a mix of methods used for low-level client debugging and anything that wasn't standardised into theeth
namespace. Creating this issue to track and decide how to go forward with this.I'll start with a list of all the methods (50 in total):
eth
:DumpBlock
(can be potentially modified to make use of snapshots when available)AccountRange
Preimage
GetBadBlocks
StorageRangeAt
GetModifiedAccountsByNumber
GetModifiedAccountsByHash
GetAccessibleState
les
(private):FreezeClient
internal/ethapi
:GetHeaderRlp
GetBlockRlp
TestSignCliqueBlock
PrintBlock
SeedHash
ChaindbProperty
(we can list the possible properties on the website)ChaindbCompact
SetHead
DbGet
eth/tracers
(private):TraceChain
TraceBlockByNumber
TraceBlockByHash
TraceBlock
TraceBlockFromFile
TraceBadBlock
StandardTraceBlockToFile
IntermediateRoots
StandardTraceBadBlockToFile
TraceTransaction
TraceCall
internal/debug
:Verbosity
Vmodule
BacktraceAt
MemStats
GcStats
CpuProfile
StartCPUProfile
StopCPUProfile
GoTrace
StartGoTrace
StopGoTrace
BlockProfile
SetBlockProfileRate
WriteBlockProfile
MutexProfile
SetMutexProfileFraction
WriteMutexProfile
WriteMemProfile
Stacks
FreeOSMemory
SetGCPercent
This is the list of methods not documented on the website:
Also
traceChain
is not exposed to JS (Edit: Ah I remember/see now it's because traceChain returns a subscription)The text was updated successfully, but these errors were encountered: