| 4408 | } |
| 4409 | |
| 4410 | int CMerkleTx::GetBlocksToMaturity() const |
| 4411 | { |
| 4412 | if (!IsCoinBase()) |
| 4413 | return 0; |
| 4414 | int chain_depth = GetDepthInMainChain(); |
| 4415 | assert(chain_depth >= 0); // coinbase tx should not be conflicted |
| 4416 | return std::max(0, (COINBASE_MATURITY+1) - chain_depth); |
| 4417 | } |
| 4418 | |
| 4419 | |
| 4420 | bool CWalletTx::AcceptToMemoryPool(const CAmount& nAbsurdFee, CValidationState& state) |
no test coverage detected