mirror of
https://github.com/cygnusxi/CurecoinSource.git
synced 2025-07-25 22:55:27 +02:00
min stake age fix from merge
This commit is contained in:
parent
8747e59c75
commit
e032e9fb5d
@ -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 * 24 * 4; // 4 day min stake age hardfork
|
||||
if (block.GetBlockTime() + nStakeMinAge > nTime)
|
||||
continue; // only count coins meeting min age requirement
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user