hotwire for testing

This commit is contained in:
Steven Saxton 2018-03-15 12:36:06 -04:00 committed by GitHub
parent 0cc3f62f2c
commit 34d9791c07
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 * 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