diff options
| author | Jeremy Rubin <[email protected]> | 2020-01-21 13:48:57 -0800 |
|---|---|---|
| committer | Jeremy Rubin <[email protected]> | 2020-09-04 09:46:44 -0700 |
| commit | 46d955d196043cc297834baeebce31ff778dff80 (patch) | |
| tree | d150833644522ec9070c75c845da4fe58eb30a1d /src/rpc/blockchain.cpp | |
| parent | Merge #19405: rpc, cli: add network in/out connections to `getnetworkinfo` an... (diff) | |
| download | discoin-46d955d196043cc297834baeebce31ff778dff80.tar.xz discoin-46d955d196043cc297834baeebce31ff778dff80.zip | |
Remove mapLinks in favor of entry inlined structs with iterator type erasure
Diffstat (limited to 'src/rpc/blockchain.cpp')
| -rw-r--r-- | src/rpc/blockchain.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 033e00daf..04b9c6b1c 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -463,9 +463,9 @@ static void entryToJSON(const CTxMemPool& pool, UniValue& info, const CTxMemPool UniValue spent(UniValue::VARR); const CTxMemPool::txiter& it = pool.mapTx.find(tx.GetHash()); - const CTxMemPool::setEntries& setChildren = pool.GetMemPoolChildren(it); - for (CTxMemPool::txiter childiter : setChildren) { - spent.push_back(childiter->GetTx().GetHash().ToString()); + const CTxMemPoolEntry::Children& children = it->GetMemPoolChildrenConst(); + for (const CTxMemPoolEntry& child : children) { + spent.push_back(child.GetTx().GetHash().ToString()); } info.pushKV("spentby", spent); |