add an upper limit to the delay between when a claim or support is made and when it becomes active

This commit is contained in:
Jimmy Kiselak 2015-12-17 12:05:20 -05:00
parent f9dfe3d067
commit 7859b72ab4

View file

@ -2130,7 +2130,7 @@ int CClaimTrieCache::getDelayForName(const std::string& name) const
int nHeightOfLastTakeover;
if (getLastTakeoverForName(name, nHeightOfLastTakeover))
{
return (nCurrentHeight - nHeightOfLastTakeover) / base->nProportionalDelayFactor;
return std::min((nCurrentHeight - nHeightOfLastTakeover) / base->nProportionalDelayFactor, 4032);
}
else
{