Skip to content

Commit

Permalink
chore: add missing RPC method debug_accountRange (#8274)
Browse files Browse the repository at this point in the history
* chore: add missing RPC method debug_accountRange

Signed-off-by: Preeti <[email protected]>

* chore: Remove TODO from getName() method

Signed-off-by: Preeti <[email protected]>

* chore: Remove TODO from getName() method and add entry to CHANGELOG.md

Signed-off-by: Preeti <[email protected]>

* moved changelog entry to unreleased

Signed-off-by: Sally MacFarlane <[email protected]>

---------

Signed-off-by: Preeti <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
Co-authored-by: Sally MacFarlane <[email protected]>
  • Loading branch information
pr9t and macfarla authored Feb 12, 2025
1 parent 4e152b0 commit 4519cd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
### Additions and Improvements
### Bug fixes
- Upgrade Netty to version 4.1.118 to fix CVE-2025-24970 [#8275](https://github.com/hyperledger/besu/pull/8275)
- Added missing RPC method `debug_accountRange` to `RpcMethod.java` and implemented its handler. [#8153](https://github.com/hyperledger/besu/issues/8153)

## 25.2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public enum RpcMethod {
CLIQUE_PROPOSE("clique_propose"),
CLIQUE_GET_SIGNER_METRICS("clique_getSignerMetrics"),
DEBUG_ACCOUNT_AT("debug_accountAt"),
DEBUG_ACCOUNT_RANGE("debug_accountRange"),
DEBUG_METRICS("debug_metrics"),
DEBUG_RESYNC_WORLDSTATE("debug_resyncWorldState"),
DEBUG_SET_HEAD("debug_setHead"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import org.hyperledger.besu.datatypes.Address;
import org.hyperledger.besu.datatypes.Hash;
import org.hyperledger.besu.ethereum.api.jsonrpc.RpcMethod;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.JsonRpcRequestContext;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.exception.InvalidJsonRpcParameters;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.parameters.BlockParameterOrBlockHash;
Expand Down Expand Up @@ -52,9 +53,7 @@ public DebugAccountRange(final Supplier<BlockchainQueries> blockchainQueries) {

@Override
public String getName() {
// TODO(shemnon) 5229b899 is the last stable commit of retesteth, after this they rename the
// method to just "debug_accountRange". Once the tool is stable we will support the new name.
return "debug_accountRange";
return RpcMethod.DEBUG_ACCOUNT_RANGE.getMethodName();
}

@Override
Expand Down

0 comments on commit 4519cd0

Please sign in to comment.