aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2013-08-28 10:16:50 -0700
committerGregory Maxwell <greg@xiph.org>2013-08-28 10:16:50 -0700
commitbf3a20a6e8cafdf723ef101af078df303ea06fec (patch)
treea3a2053ad7d19bc5d2770955558c452c9614f9ba /src/main.cpp
parentbb7d0fc12fcfbb2a91e39cb49f2a0873344dbae0 (diff)
[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 24fd1fadbc..557a01b8cf 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());
}