Skip to content

Commit

Permalink
getmempooltxids bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Jun 7, 2024
1 parent d84f1e5 commit ef93908
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rpc/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef93908

Please sign in to comment.