From dc7c69e4f233e16162befc902a70bb108db96d2a Mon Sep 17 00:00:00 2001 From: HighGoal1991 Date: Tue, 10 Oct 2023 04:16:46 -0400 Subject: [PATCH] Website docs update examples (#28289) * docs: fix params for debug_stacks * docs: fix typo on debug_stopGoTrace example * docs: remove debug_seedHash example Fixes issue #28282 Fixes issue #28288 Fixes issue #28281 --- docs/interacting-with-geth/rpc/ns-debug.md | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/docs/interacting-with-geth/rpc/ns-debug.md b/docs/interacting-with-geth/rpc/ns-debug.md index 10dca3483..b17f5ceb3 100644 --- a/docs/interacting-with-geth/rpc/ns-debug.md +++ b/docs/interacting-with-geth/rpc/ns-debug.md @@ -305,16 +305,6 @@ Retrieves a block and returns its pretty printed form. | Console | `debug.printBlock(number uint64)` | | RPC | `{"method": "debug_printBlock", "params": [number]}` | -### debug_seedHash - -Fetches and retrieves the seed hash of the block by number - -| Client | Method invocation | -| :------ | -------------------------------------------------- | -| Go | `debug.SeedHash(number uint64) (string, error)` | -| Console | `debug.seedHash(number, [options])` | -| RPC | `{"method": "debug_seedHash", "params": [number]}` | - ### debug_setBlockProfileRate Sets the rate (in samples/sec) of goroutine block profile data collection. A non-zero rate enables block profiling, setting it to zero stops the profile. Collected profile data can be written using `debug_writeBlockProfile`. @@ -374,8 +364,8 @@ Returns a printed representation of the stacks of all goroutines. Note that the | Client | Method invocation | | :------ | ------------------------------------------ | -| Console | `debug.stacks()` | -| RPC | `{"method": "debug_stacks", "params": []}` | +| Console | `debug.stacks(filter *string)` | +| RPC | `{"method": "debug_stacks", "params": [filter]}` | ### debug_standardTraceBlockToFile @@ -465,8 +455,8 @@ Stops writing the Go runtime trace. | Client | Method invocation | | :------ | ----------------------------------------------- | -| Console | `debug.startGoTrace(file)` | -| RPC | `{"method": "debug_stopGoTrace", "params": []}` | +| Console | `debug.stopGoTrace(file)` | +| RPC | `{"method": "debug_stopGoTrace", "params": [string]}` | ### debug_storageRangeAt