diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-07-28 19:29:50 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2019-02-22 15:43:02 -0400 |
commit | 291276f7f40df9fcd62e54c016953705bf0ed04a (patch) | |
tree | bd5e5f8280ff559fe2a8eb84538655957619136b /src/interfaces/chain.cpp | |
parent | bdc6628683197945326cbdfea3f53ec0b7d1949f (diff) | |
download | bitcoin-291276f7f40df9fcd62e54c016953705bf0ed04a.tar.xz |
Remove use of GetCountWithDescendants in wallet code
This commit does not change behavior.
Diffstat (limited to 'src/interfaces/chain.cpp')
-rw-r--r-- | src/interfaces/chain.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp index 7cab303aad..8c5921970b 100644 --- a/src/interfaces/chain.cpp +++ b/src/interfaces/chain.cpp @@ -190,6 +190,12 @@ public: LOCK(::mempool.cs); return IsRBFOptIn(tx, ::mempool); } + bool hasDescendantsInMempool(const uint256& txid) override + { + LOCK(::mempool.cs); + auto it_mp = ::mempool.mapTx.find(txid); + return it_mp != ::mempool.mapTx.end() && it_mp->GetCountWithDescendants() > 1; + } }; } // namespace |