diff options
author | Carl Dong <contact@carldong.me> | 2020-12-18 15:27:35 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-02-18 14:43:28 -0500 |
commit | 577b774d0c664b891bc9e1550ef179a655a466ad (patch) | |
tree | 2233cf5de8f50e0fdc34af796acee7f1ff0d13b9 | |
parent | 7031cf89db943d3e73597d2f9fa4a41908558e6c (diff) | |
download | bitcoin-577b774d0c664b891bc9e1550ef179a655a466ad.tar.xz |
validation: Remove old CheckFinalTx w/o chain tip param
-rw-r--r-- | src/validation.cpp | 5 | ||||
-rw-r--r-- | src/validation.h | 1 |
2 files changed, 0 insertions, 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); /** |