From 577b774d0c664b891bc9e1550ef179a655a466ad Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Fri, 18 Dec 2020 15:27:35 -0500 Subject: [PATCH] validation: Remove old CheckFinalTx w/o chain tip param --- src/validation.cpp | 5 ----- src/validation.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index 8f076ce789..9cf147d9c8 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -204,11 +204,6 @@ static FILE* OpenUndoFile(const FlatFilePos &pos, bool fReadOnly = false); static FlatFileSeq BlockFileSeq(); static FlatFileSeq UndoFileSeq(); -bool CheckFinalTx(const CTransaction &tx, int flags) -{ - return CheckFinalTx(::ChainActive().Tip(), tx, flags); -} - bool CheckFinalTx(const CBlockIndex* active_chain_tip, const CTransaction &tx, int flags) { AssertLockHeld(cs_main); diff --git a/src/validation.h b/src/validation.h index 16bf14875b..704167fee0 100644 --- a/src/validation.h +++ b/src/validation.h @@ -248,7 +248,6 @@ void UpdateCoins(const CTransaction& tx, CCoinsViewCache& inputs, int nHeight); * * See consensus/consensus.h for flag definitions. */ -bool CheckFinalTx(const CTransaction &tx, int flags = -1) EXCLUSIVE_LOCKS_REQUIRED(cs_main); bool CheckFinalTx(const CBlockIndex* active_chain_tip, const CTransaction &tx, int flags = -1) EXCLUSIVE_LOCKS_REQUIRED(cs_main); /**