From 627750338c7b7f239af0251e9ccc6f8325ee42ea Mon Sep 17 00:00:00 2001 From: MASDXI Date: Tue, 5 Mar 2024 20:44:05 +0700 Subject: [PATCH] - change txpool_besuTransactions to txpool_besuPendingTransactions - change runtime config enable pending transaction for besu client --- CHANGELOG.md | 1 + .../lib/ethereum_jsonrpc/pending_transaction.ex | 2 +- config/runtime.exs | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e3e97ece5..eb9e949043 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ### Fixes +- [#](https://github.com/blockscout/blockscout/pull/) - Fix fetch pending transaction for hyperledger besu client - [#9514](https://github.com/blockscout/blockscout/pull/9514) - Fix missing `0x` prefix for `blockNumber`, `logIndex`, `transactionIndex` and remove `transactionLogIndex` in `eth_getLogs` response. - [#9512](https://github.com/blockscout/blockscout/pull/9512) - Docker-compose 2.24.6 compatibility - [#9262](https://github.com/blockscout/blockscout/pull/9262) - Fix withdrawal status diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/pending_transaction.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/pending_transaction.ex index 90de6961f1..2467878761 100644 --- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/pending_transaction.ex +++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/pending_transaction.ex @@ -61,7 +61,7 @@ defmodule EthereumJSONRPC.PendingTransaction do {:ok, [Transaction.params()]} | {:error, reason :: term} def fetch_pending_transactions_besu(json_rpc_named_arguments) do with {:ok, transactions} <- - %{id: 1, method: "txpool_besuTransactions", params: []} + %{id: 1, method: "txpool_besuPendingTransactions", params: [512]} |> request() |> json_rpc(json_rpc_named_arguments) do transactions_params = diff --git a/config/runtime.exs b/config/runtime.exs index 9d879a1ce7..95c4a65bd9 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -561,8 +561,7 @@ config :indexer, Indexer.Fetcher.TransactionAction, config :indexer, Indexer.Fetcher.PendingTransaction.Supervisor, disabled?: - System.get_env("ETHEREUM_JSONRPC_VARIANT") == "besu" || - ConfigHelper.parse_bool_env_var("INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER") + ConfigHelper.parse_bool_env_var("INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER") config :indexer, Indexer.Fetcher.Token, concurrency: ConfigHelper.parse_integer_env_var("INDEXER_TOKEN_CONCURRENCY", 10)