mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-26 16:36:17 +00:00
internal/web3ext: remove deprecated method debug_seedHash (#1380)
This commit is contained in:
parent
17e6757daa
commit
ee1807b75c
2 changed files with 6 additions and 36 deletions
|
|
@ -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`.
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue