Skip to content

Commit fac8165

Browse files
author
MarcoFalke
committed
Remove unused checkFinalTx
1 parent fa272ea commit fac8165

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/interfaces/chain.h

-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ class Chain
116116
//! or one of its ancestors.
117117
virtual std::optional<int> findLocatorFork(const CBlockLocator& locator) = 0;
118118

119-
//! Check if transaction will be final given chain height current time.
120-
virtual bool checkFinalTx(const CTransaction& tx) = 0;
121-
122119
//! Return whether node has the block and optionally return block metadata
123120
//! or contents.
124121
virtual bool findBlock(const uint256& hash, const FoundBlock& block={}) = 0;

src/node/interfaces.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,6 @@ class ChainImpl : public Chain
486486
const CChain& active = Assert(m_node.chainman)->ActiveChain();
487487
return active.GetLocator();
488488
}
489-
bool checkFinalTx(const CTransaction& tx) override
490-
{
491-
LOCK(cs_main);
492-
return CheckFinalTx(chainman().ActiveChain().Tip(), tx);
493-
}
494489
std::optional<int> findLocatorFork(const CBlockLocator& locator) override
495490
{
496491
LOCK(cs_main);

0 commit comments

Comments
 (0)