mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 11:13:23 -03:00
Remove unused checkFinalTx
This commit is contained in:
parent
fa272eab44
commit
fac8165443
2 changed files with 0 additions and 8 deletions
|
@ -116,9 +116,6 @@ public:
|
||||||
//! or one of its ancestors.
|
//! or one of its ancestors.
|
||||||
virtual std::optional<int> findLocatorFork(const CBlockLocator& locator) = 0;
|
virtual std::optional<int> findLocatorFork(const CBlockLocator& locator) = 0;
|
||||||
|
|
||||||
//! Check if transaction will be final given chain height current time.
|
|
||||||
virtual bool checkFinalTx(const CTransaction& tx) = 0;
|
|
||||||
|
|
||||||
//! Return whether node has the block and optionally return block metadata
|
//! Return whether node has the block and optionally return block metadata
|
||||||
//! or contents.
|
//! or contents.
|
||||||
virtual bool findBlock(const uint256& hash, const FoundBlock& block={}) = 0;
|
virtual bool findBlock(const uint256& hash, const FoundBlock& block={}) = 0;
|
||||||
|
|
|
@ -486,11 +486,6 @@ public:
|
||||||
const CChain& active = Assert(m_node.chainman)->ActiveChain();
|
const CChain& active = Assert(m_node.chainman)->ActiveChain();
|
||||||
return active.GetLocator();
|
return active.GetLocator();
|
||||||
}
|
}
|
||||||
bool checkFinalTx(const CTransaction& tx) override
|
|
||||||
{
|
|
||||||
LOCK(cs_main);
|
|
||||||
return CheckFinalTx(chainman().ActiveChain().Tip(), tx);
|
|
||||||
}
|
|
||||||
std::optional<int> findLocatorFork(const CBlockLocator& locator) override
|
std::optional<int> findLocatorFork(const CBlockLocator& locator) override
|
||||||
{
|
{
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
|
Loading…
Add table
Reference in a new issue