From 26d518d98ea1aa60401eb884ef593a29ec1286a6 Mon Sep 17 00:00:00 2001 From: Vyacheslav Shebanov Date: Tue, 14 Mar 2023 22:51:16 +0200 Subject: [PATCH] Debug methods group Added debug methods group for easier enabling debug_* methods --- .../dshackle/upstream/calls/DefaultEthereumMethods.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt index f4006d6e..0e237f5b 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt @@ -59,6 +59,16 @@ class DefaultEthereumMethods( "trace_get", "trace_transaction", ) + + val debugMethods = listOf( + "debug_storageRangeAt", + "debug_traceBlock", + "debug_traceBlockByHash", + "debug_traceBlockByNumber", + "debug_traceCall", + "debug_traceCallMany", + "debug_traceTransaction" + ) } private val anyResponseMethods = listOf( @@ -352,6 +362,7 @@ class DefaultEthereumMethods( when (groupName) { "filter" -> filterMethods "trace" -> traceMethods + "debug" -> debugMethods else -> emptyList() }.toSet()