internal/web3ext: remove deprecated method debug_seedHash (#1380)

This commit is contained in:
Daniel Liu 2025-08-26 15:10:26 +08:00 committed by GitHub
parent 17e6757daa
commit ee1807b75c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 36 deletions

View file

@ -1134,31 +1134,6 @@ curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{
}' | jq }' | jq
``` ```
### debug_seedHash
The `seedHash` method retrieves the seed hash of a block.
Parameters:
- number: uint64, required, block number
Returns:
result: string
Example:
```shell
curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{
"jsonrpc": "2.0",
"id": 1001,
"method": "debug_seedHash",
"params": [
0
]
}' | jq
```
### debug_setBlockProfileRate ### debug_setBlockProfileRate
The `setBlockProfileRate` method 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`. The `setBlockProfileRate` method 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`.

View file

@ -297,11 +297,6 @@ web3._extend({
call: 'debug_setHead', call: 'debug_setHead',
params: 1 params: 1
}), }),
new web3._extend.Method({
name: 'seedHash',
call: 'debug_seedHash',
params: 1
}),
new web3._extend.Method({ new web3._extend.Method({
name: 'dumpBlock', name: 'dumpBlock',
call: 'debug_dumpBlock', call: 'debug_dumpBlock',