mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge dd391944dc into merged_master (Bitcoin PR bitcoin/bitcoin#28863)
This commit is contained in:
commit
c99f0e4a16
7 changed files with 25 additions and 30 deletions
|
|
@ -46,6 +46,7 @@
|
|||
#include <uint256.h>
|
||||
#include <univalue.h>
|
||||
#include <util/check.h>
|
||||
#include <util/result.h>
|
||||
#include <util/signalinterrupt.h>
|
||||
#include <util/translation.h>
|
||||
#include <validation.h>
|
||||
|
|
@ -703,15 +704,14 @@ public:
|
|||
limit_ancestor_count = limits.ancestor_count;
|
||||
limit_descendant_count = limits.descendant_count;
|
||||
}
|
||||
bool checkChainLimits(const CTransactionRef& tx) override
|
||||
util::Result<void> checkChainLimits(const CTransactionRef& tx) override
|
||||
{
|
||||
if (!m_node.mempool) return true;
|
||||
if (!m_node.mempool) return {};
|
||||
LockPoints lp;
|
||||
std::set<std::pair<uint256, COutPoint>> setPeginsSpent;
|
||||
CTxMemPoolEntry entry(tx, 0, 0, 0, 0, false, 0, lp, setPeginsSpent);
|
||||
LOCK(m_node.mempool->cs);
|
||||
std::string err_string;
|
||||
return m_node.mempool->CheckPackageLimits({tx}, entry.GetTxSize(), err_string);
|
||||
return m_node.mempool->CheckPackageLimits({tx}, entry.GetTxSize());
|
||||
}
|
||||
CFeeRate estimateSmartFee(int num_blocks, bool conservative, FeeCalculation* calc) override
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue