aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-10-03 22:52:38 -0700
committerGavin Andresen <[email protected]>2013-10-03 22:52:38 -0700
commitacb3ebc45506701fdb7e060d8b941a5ba6a1b5ac (patch)
treea3eae8ace95579600c3ebfabe9b1c36e014b33d0 /src/main.cpp
parentMerge pull request #2999 from TheBlueMatt/master (diff)
parent[wallet] Consider generated coins mature at COINBASE_MATURITY+1 (diff)
downloaddiscoin-acb3ebc45506701fdb7e060d8b941a5ba6a1b5ac.tar.xz
discoin-acb3ebc45506701fdb7e060d8b941a5ba6a1b5ac.zip
Merge pull request #2947 from gmaxwell/theyre_maturing_faster_these_days
[wallet] Consider generated coins mature at COINBASE_MATURITY+1
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 dc690111e..8df288380 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());
}