diff options
author | Carl Dong <contact@carldong.me> | 2022-05-20 13:22:47 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-05-27 15:31:07 -0400 |
commit | f024578b3a5c40e275e23d1c8e82530e235fdbf9 (patch) | |
tree | ba4205b3f5e5cdcb60e481a9d7e4d976175c6916 /src/node/miner.h | |
parent | 345457b542b6a980ccfbc868af0970a6f91d1b82 (diff) | |
download | bitcoin-f024578b3a5c40e275e23d1c8e82530e235fdbf9.tar.xz |
miner: Absorb SkipMapTxEntry into addPackageTxs
SkipMapTxEntry is a short helper function that's only used in
addPackageTxs, we can just inline it, keep the comments, and avoid the
unnecessary interface and lock annotations.
Diffstat (limited to 'src/node/miner.h')
-rw-r--r-- | src/node/miner.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/node/miner.h b/src/node/miner.h index 7cf8e3fb9e..b5f70d2fc0 100644 --- a/src/node/miner.h +++ b/src/node/miner.h @@ -189,9 +189,6 @@ private: * These checks should always succeed, and they're here * only as an extra check in case of suboptimal node configuration */ bool TestPackageTransactions(const CTxMemPool::setEntries& package) const; - /** Return true if given transaction from mapTx has already been evaluated, - * or if the transaction's cached data in mapTx is incorrect. */ - bool SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_transaction_set& mapModifiedTx, CTxMemPool::setEntries& failedTx) EXCLUSIVE_LOCKS_REQUIRED(m_mempool.cs); /** Sort the package in an order that is valid to appear in a block */ void SortForBlock(const CTxMemPool::setEntries& package, std::vector<CTxMemPool::txiter>& sortedEntries); /** Add descendants of given transactions to mapModifiedTx with ancestor |