| 3336 | } |
| 3337 | |
| 3338 | int CWallet::GetTxBlocksToMaturity(const CWalletTx& wtx) const |
| 3339 | { |
| 3340 | if (!wtx.IsCoinBase()) |
| 3341 | return 0; |
| 3342 | int chain_depth = GetTxDepthInMainChain(wtx); |
| 3343 | assert(chain_depth >= 0); // coinbase tx should not be conflicted |
| 3344 | return std::max(0, (COINBASE_MATURITY+1) - chain_depth); |
| 3345 | } |
| 3346 | |
| 3347 | bool CWallet::IsTxImmatureCoinBase(const CWalletTx& wtx) const |
| 3348 | { |
no test coverage detected