mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 20:32:35 -03:00
Merge pull request #2947 from gmaxwell/theyre_maturing_faster_these_days
[wallet] Consider generated coins mature at COINBASE_MATURITY+1
This commit is contained in:
commit
acb3ebc455
1 changed files with 1 additions and 1 deletions
|
@ -1098,7 +1098,7 @@ int CMerkleTx::GetBlocksToMaturity() const
|
||||||
{
|
{
|
||||||
if (!IsCoinBase())
|
if (!IsCoinBase())
|
||||||
return 0;
|
return 0;
|
||||||
return max(0, (COINBASE_MATURITY+20) - GetDepthInMainChain());
|
return max(0, (COINBASE_MATURITY+1) - GetDepthInMainChain());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue