diff options
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/mempool.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp index f6d9d42f0f..04d2e68939 100644 --- a/src/rpc/mempool.cpp +++ b/src/rpc/mempool.cpp @@ -353,17 +353,15 @@ UniValue MempoolToJSON(const CTxMemPool& pool, bool verbose, bool include_mempoo } return o; } else { + UniValue a(UniValue::VARR); uint64_t mempool_sequence; - std::vector<uint256> vtxid; { LOCK(pool.cs); - pool.queryHashes(vtxid); + for (const CTxMemPoolEntry& e : pool.entryAll()) { + a.push_back(e.GetTx().GetHash().ToString()); + } mempool_sequence = pool.GetSequence(); } - UniValue a(UniValue::VARR); - for (const uint256& hash : vtxid) - a.push_back(hash.ToString()); - if (!include_mempool_sequence) { return a; } else { |