[wallet] Consider generated coins mature at COINBASE_MATURITY+1
We're not seeing large reorgs that would justify waiting a large amount past the rule required maturity, and the extra three hours is just a nuisance. Take one more block to at least give the 100th block time to propagate.
This commit is contained in:
parent
bb7d0fc12f
commit
bf3a20a6e8
1 changed files with 1 additions and 1 deletions
|
@ -1096,7 +1096,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