Skip to content

Commit

Permalink
provide null in case no tx present
Browse files Browse the repository at this point in the history
  • Loading branch information
lupin012 committed Sep 1, 2024
1 parent 98ed5f1 commit 69feacc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions silkworm/rpc/commands/txpool_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ Task<void> TxPoolRpcApi::handle_txpool_status(const nlohmann::json& request, nlo
Task<void> TxPoolRpcApi::handle_txpool_content(const nlohmann::json& request, nlohmann::json& reply) {
try {
const auto txpool_transactions = co_await tx_pool_->get_transactions();
if (!txpool_transactions.size()) {
reply = make_json_content(request, nullptr);
co_return;
}

TransactionContent transactions_content;
transactions_content["queued"];
Expand Down

0 comments on commit 69feacc

Please sign in to comment.