From fac816544317cee6553d60cb0f5f24f6f9ec98de Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 14 Jan 2022 14:46:34 +0100 Subject: [PATCH] Remove unused checkFinalTx --- src/interfaces/chain.h | 3 --- src/node/interfaces.cpp | 5 ----- 2 files changed, 8 deletions(-) diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index 4f5105a5c12..ddfb4bda95b 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -116,9 +116,6 @@ public: //! or one of its ancestors. virtual std::optional 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 //! or contents. virtual bool findBlock(const uint256& hash, const FoundBlock& block={}) = 0; diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index 1a48957f0fd..ffad289fa9b 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -486,11 +486,6 @@ public: const CChain& active = Assert(m_node.chainman)->ActiveChain(); return active.GetLocator(); } - bool checkFinalTx(const CTransaction& tx) override - { - LOCK(cs_main); - return CheckFinalTx(chainman().ActiveChain().Tip(), tx); - } std::optional findLocatorFork(const CBlockLocator& locator) override { LOCK(cs_main);