aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <[email protected]>2013-08-28 10:16:50 -0700
committerGregory Maxwell <[email protected]>2013-08-28 10:16:50 -0700
commitbf3a20a6e8cafdf723ef101af078df303ea06fec (patch)
treea3a2053ad7d19bc5d2770955558c452c9614f9ba /src/main.cpp
parentMerge pull request #2928 from jgarzik/cnb-txout (diff)
downloaddiscoin-bf3a20a6e8cafdf723ef101af078df303ea06fec.tar.xz
discoin-bf3a20a6e8cafdf723ef101af078df303ea06fec.zip
[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.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 24fd1fadb..557a01b8c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1096,7 +1096,7 @@ int CMerkleTx::GetBlocksToMaturity() const
{
if (!IsCoinBase())
return 0;
- return max(0, (COINBASE_MATURITY+20) - GetDepthInMainChain());
+ return max(0, (COINBASE_MATURITY+1) - GetDepthInMainChain());
}