Replace COINBASE_MATURITY...

...with nCoinbaseMaturity
This commit is contained in:
lateminer
2017-12-17 15:21:59 +03:00
parent 0252c5cea3
commit f536a8126e
7 changed files with 8 additions and 6 deletions

View File

@@ -3520,7 +3520,7 @@ int CMerkleTx::GetBlocksToMaturity() const
{
if (!(IsCoinBase() || IsCoinStake()))
return 0;
return max(0, (COINBASE_MATURITY+1) - GetDepthInMainChain());
return max(0, (Params().GetConsensus().nCoinbaseMaturity+1) - GetDepthInMainChain());
}