From db8175aa9377100c7f2ec02c318ccff6dd11a53f Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Mon, 18 Nov 2024 19:33:13 +0700 Subject: [PATCH] debug_accountRange: rpc test uncomment (#12741) --- .github/workflows/scripts/run_rpc_tests.sh | 8 +------- turbo/jsonrpc/debug_api.go | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/scripts/run_rpc_tests.sh b/.github/workflows/scripts/run_rpc_tests.sh index 8a93ed68e1a..5f9618ee928 100755 --- a/.github/workflows/scripts/run_rpc_tests.sh +++ b/.github/workflows/scripts/run_rpc_tests.sh @@ -6,10 +6,6 @@ set +e # Disable exit on error disabled_tests=( # Erigon2 and Erigon3 never supported this api methods trace_rawTransaction - # Erigon bugs - debug_accountRange - # changed in last commits - debug_storageRangeAt/test_11.json # needs investigations debug_getModifiedAccountsByHash debug_getModifiedAccountsByNumber @@ -44,9 +40,7 @@ disabled_tests=( net_peerCount/test_1.json net_version/test_1.json txpool_status/test_1.json - web3_clientVersion/test_1.json - # broken by https://github.com/erigontech/erigon/pull/12642 (@AskAlexSharov will fix) - debug_storageRangeAt/test_11.json) + web3_clientVersion/test_1.json) # Transform the array into a comma-separated string disabled_test_list=$(IFS=,; echo "${disabled_tests[*]}") diff --git a/turbo/jsonrpc/debug_api.go b/turbo/jsonrpc/debug_api.go index 118eb720339..7f5a5ab0744 100644 --- a/turbo/jsonrpc/debug_api.go +++ b/turbo/jsonrpc/debug_api.go @@ -93,7 +93,7 @@ func (api *PrivateDebugAPIImpl) StorageRangeAt(ctx context.Context, blockHash co return StorageRangeResult{}, err } if number == nil { - return StorageRangeResult{}, errors.New("block not found") + return StorageRangeResult{}, nil } minTxNum, err := txNumsReader.Min(tx, *number) if err != nil {