@ -474,7 +474,7 @@ struct COutputEntry
class CMerkleTx : public CTransaction
{
private :
int GetDepthInMainChainINTERNAL ( CBlockIndex * & pindexRet ) const ;
int GetDepthInMainChainINTERNAL ( const CBlockIndex * & pindexRet ) const ;
public :
uint256 hashBlock ;
@ -519,9 +519,9 @@ public:
// -1 : not in blockchain, and not in memory pool (conflicted transaction)
// 0 : in memory pool, waiting to be included in a block
// >=1 : this many blocks deep in the main chain
int GetDepthInMainChain ( CBlockIndex * & pindexRet ) const ;
int GetDepthInMainChain ( ) const { CBlockIndex * pindexRet ; return GetDepthInMainChain ( pindexRet ) ; }
bool IsInMainChain ( ) const { CBlockIndex * pindexRet ; return GetDepthInMainChainINTERNAL ( pindexRet ) > 0 ; }
int GetDepthInMainChain ( const CBlockIndex * & pindexRet ) const ;
int GetDepthInMainChain ( ) const { const CBlockIndex * pindexRet ; return GetDepthInMainChain ( pindexRet ) ; }
bool IsInMainChain ( ) const { const CBlockIndex * pindexRet ; return GetDepthInMainChainINTERNAL ( pindexRet ) > 0 ; }
int GetBlocksToMaturity ( ) const ;
bool AcceptToMemoryPool ( bool fLimitFree = true , bool fRejectInsaneFee = true ) ;
} ;