aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-10-03 22:52:38 -0700
committerGavin Andresen <gavinandresen@gmail.com>2013-10-03 22:52:38 -0700
commitacb3ebc45506701fdb7e060d8b941a5ba6a1b5ac (patch)
treea3eae8ace95579600c3ebfabe9b1c36e014b33d0 /src
parentd922c85716e39d0cd260261450cd8ddab48c2e4d (diff)
parentbf3a20a6e8cafdf723ef101af078df303ea06fec (diff)
Merge pull request #2947 from gmaxwell/theyre_maturing_faster_these_days
[wallet] Consider generated coins mature at COINBASE_MATURITY+1
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index dc690111e6..8df288380a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1098,7 +1098,7 @@ int CMerkleTx::GetBlocksToMaturity() const
{
if (!IsCoinBase())
return 0;
- return max(0, (COINBASE_MATURITY+20) - GetDepthInMainChain());
+ return max(0, (COINBASE_MATURITY+1) - GetDepthInMainChain());
}