Skip to content

Commit e7c8ca6

Browse files
committed
wallet: remove unused IsInMainChain method
1 parent 9e51a48 commit e7c8ca6

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4337,11 +4337,6 @@ int CWalletTx::GetBlocksToMaturity() const
43374337
return std::max(0, (Params().GetConsensus().nCoinbaseMaturity + 1) - GetDepthInMainChain());
43384338
}
43394339

4340-
bool CWalletTx::IsInMainChain() const
4341-
{
4342-
return GetDepthInMainChain() > 0;
4343-
}
4344-
43454340
bool CWalletTx::IsInMainChainImmature() const
43464341
{
43474342
if (!IsCoinBase() && !IsCoinStake()) return false;

src/wallet/wallet.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ class CWalletTx
522522
*/
523523
int GetDepthInMainChain(const CBlockIndex*& pindexRet) const;
524524
int GetDepthInMainChain() const;
525-
bool IsInMainChain() const;
526525
bool IsInMainChainImmature() const;
527526
int GetBlocksToMaturity() const;
528527

0 commit comments

Comments
 (0)