From caad6859f26f4b5996140709b4827d45c55ae648 Mon Sep 17 00:00:00 2001 From: cygnusxi Date: Fri, 20 Apr 2018 17:01:41 -0500 Subject: [PATCH] Reverse previous HF block test This was a test before verifying existing chain stake age behavior going into the hardfork. Stake age behavior has been verified to work with time warp tests - Still needs further testing - last test worked. --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 1a768a8..0f3fb50 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1999,7 +1999,7 @@ bool CTransaction::GetCoinAge(CTxDB& txdb, uint64& nCoinAge) const CBlock block; if (!block.ReadFromDisk(txindex.pos.nFile, txindex.pos.nBlockPos, false)) return false; // unable to read block of previous transaction - if ( nBestHeight >= (int)HF_BLOCK ) nStakeMinAge = 60 * 60; // 1 hour hotwire * 24 * 4; // 4 day min stake age hardfork + if ( nBestHeight > (int)HF_BLOCK ) nStakeMinAge = 60 * 60; // 1 hour hotwire * 24 * 4; // 4 day min stake age hardfork if (block.GetBlockTime() + nStakeMinAge > nTime) continue; // only count coins meeting min age requirement