From ef9390857d7821c8ff9f5afda9b8d1f664b7ddb3 Mon Sep 17 00:00:00 2001 From: levonpetrosyan93 Date: Sat, 8 Jun 2024 01:32:35 +0400 Subject: [PATCH] getmempooltxids bug fixed --- src/rpc/misc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index d65ed5340a..521ee71a0a 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -1444,9 +1444,7 @@ UniValue getmempooltxids(const JSONRPCRequest& request) for (auto it = txs.begin(); it != txs.end(); it++) { if (!it->tx->IsSparkTransaction()) continue; - UniValue txid(UniValue::VOBJ); - txid.push_back(EncodeBase64(it->tx->GetHash().begin(), it->tx->GetHash().size())); - result.push_back(txid); + result.push_back(EncodeBase64(it->tx->GetHash().begin(), it->tx->GetHash().size())); } return result;