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`.
@ -1980,7 +1955,7 @@ curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{
"id": 1003, "id": 1003,
"method": "eth_getBalance", "method": "eth_getBalance",
"params": [ "params": [
"0xD4CE02705041F04135f1949Bc835c1Fe0885513c", "0xD4CE02705041F04135f1949Bc835c1Fe0885513c",
"latest" "latest"
] ]
}' | jq }' | jq
@ -1994,7 +1969,7 @@ Parameters:
- blockHash: hash, required, block hash - blockHash: hash, required, block hash
- fullTx: bool, required, if true returns the full transaction objects, if false returns only the hashes of the transactions - fullTx: bool, required, if true returns the full transaction objects, if false returns only the hashes of the transactions
Returns: Returns:
result: object result: object
@ -2007,7 +1982,7 @@ curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{
"id": 1003, "id": 1003,
"method": "eth_getBlockByHash", "method": "eth_getBlockByHash",
"params": [ "params": [
"0xb6fbeabaa5682445b825c5bb02faf9290a38be44d9a47834b65224478923ebce", "0xb6fbeabaa5682445b825c5bb02faf9290a38be44d9a47834b65224478923ebce",
true true
] ]
}' | jq }' | jq
@ -2894,7 +2869,7 @@ curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{
"id": 1001, "id": 1001,
"method": "eth_sign", "method": "eth_sign",
"params":[ "params":[
"0xD4CE02705041F04135f1949Bc835c1Fe0885513c", "0xD4CE02705041F04135f1949Bc835c1Fe0885513c",
"0x1234abcd" "0x1234abcd"
] ]
}' | jq }' | jq
@ -2919,7 +2894,7 @@ Parameters:
- maxFeePerGas: big.Int, optional, maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. - maxFeePerGas: big.Int, optional, maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas.
- accessList: array of object, optional, list of addresses and storage keys the transaction plans to access - accessList: array of object, optional, list of addresses and storage keys the transaction plans to access
- chainId: big.Int, optional, chain ID - chainId: big.Int, optional, chain ID
Returns: Returns:
result: object SignTransactionResult result: object SignTransactionResult
@ -2968,7 +2943,7 @@ curl -s -X POST -H "Content-Type: application/json" ${RPC} -d '{
"id": 1001, "id": 1001,
"method": "eth_submitWork", "method": "eth_submitWork",
"params": [ "params": [
"0x0000000000000001", "0x0000000000000001",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000" "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"
] ]

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',