diff options
author | Carl Dong <contact@carldong.me> | 2020-12-18 15:39:32 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-02-18 14:49:10 -0500 |
commit | 417dafc1ee07af3319c2fe89758123cb8362ff16 (patch) | |
tree | 58b6d7f33814787950ca385903bf417ebbd4ab5e /src | |
parent | 3704433c4f5ecf9f196860b2ccecae0d2c8b5f6e (diff) |
validation: Remove old AcceptToMemoryPool w/o chainstate param
Diffstat (limited to 'src')
-rw-r--r-- | src/validation.cpp | 5 | ||||
-rw-r--r-- | src/validation.h | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index e40a273257..0b4f0dbb4c 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1101,11 +1101,6 @@ static MempoolAcceptResult AcceptToMemoryPoolWithTime(const CChainParams& chainp return result; } -MempoolAcceptResult AcceptToMemoryPool(CTxMemPool& pool, const CTransactionRef &tx, bool bypass_limits, bool test_accept) -{ - return AcceptToMemoryPool(::ChainstateActive(), pool, tx, bypass_limits, test_accept); -} - MempoolAcceptResult AcceptToMemoryPool(CChainState& active_chainstate, CTxMemPool& pool, const CTransactionRef& tx, bool bypass_limits, bool test_accept) { assert(std::addressof(::ChainstateActive()) == std::addressof(active_chainstate)); diff --git a/src/validation.h b/src/validation.h index 80ef0eaa7d..739f4f1d99 100644 --- a/src/validation.h +++ b/src/validation.h @@ -223,8 +223,6 @@ struct MempoolAcceptResult { * @param[in] bypass_limits When true, don't enforce mempool fee limits. * @param[in] test_accept When true, run validation checks but don't submit to mempool. */ -MempoolAcceptResult AcceptToMemoryPool(CTxMemPool& pool, const CTransactionRef& tx, - bool bypass_limits, bool test_accept=false) EXCLUSIVE_LOCKS_REQUIRED(cs_main); MempoolAcceptResult AcceptToMemoryPool(CChainState& active_chainstate, CTxMemPool& pool, const CTransactionRef& tx, bool bypass_limits, bool test_accept=false) EXCLUSIVE_LOCKS_REQUIRED(cs_main); |