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.
This commit is contained in:
cygnusxi 2018-04-20 17:01:41 -05:00 committed by GitHub
parent 005b4da978
commit caad6859f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1999,7 +1999,7 @@ bool CTransaction::GetCoinAge(CTxDB& txdb, uint64& nCoinAge) const
CBlock block; CBlock block;
if (!block.ReadFromDisk(txindex.pos.nFile, txindex.pos.nBlockPos, false)) if (!block.ReadFromDisk(txindex.pos.nFile, txindex.pos.nBlockPos, false))
return false; // unable to read block of previous transaction 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) if (block.GetBlockTime() + nStakeMinAge > nTime)
continue; // only count coins meeting min age requirement continue; // only count coins meeting min age requirement