diff options
author | Carl Dong <contact@carldong.me> | 2022-05-20 13:28:35 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-05-27 15:34:28 -0400 |
commit | cc5739b27df830d138119eaa13f2286d91d0dadd (patch) | |
tree | 3a3633fa0316b00150372fe0df04feb5f7d6eeef /src/node/miner.h | |
parent | f024578b3a5c40e275e23d1c8e82530e235fdbf9 (diff) | |
download | bitcoin-cc5739b27df830d138119eaa13f2286d91d0dadd.tar.xz |
miner: Make UpdatePackagesForAdded static
Since UpdatePackagesForAdded is a helper function that's only used in
addPackageTxs we can make it static and avoid the unnecessary interface
and in-header lock annotation.
Diffstat (limited to 'src/node/miner.h')
-rw-r--r-- | src/node/miner.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/node/miner.h b/src/node/miner.h index b5f70d2fc0..4e4f02ce4d 100644 --- a/src/node/miner.h +++ b/src/node/miner.h @@ -191,10 +191,6 @@ private: bool TestPackageTransactions(const CTxMemPool::setEntries& package) const; /** 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 - * state updated assuming given transactions are inBlock. Returns number - * of updated descendants. */ - int UpdatePackagesForAdded(const CTxMemPool::setEntries& alreadyAdded, indexed_modified_transaction_set& mapModifiedTx) EXCLUSIVE_LOCKS_REQUIRED(m_mempool.cs); }; int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev); |