Skip to content

Commit

Permalink
Modulo reset compatibility with alt oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
miketout committed Apr 10, 2024
1 parent 11353a3 commit aa53dc0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pbaas/pbaas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6325,6 +6325,16 @@ void CConnectedChains::CheckOracleUpgrades()
}

CUpgradeDescriptor oneUpgrade;

// compatible with vARRR update notarization modulo reset, even if no
// or different oracle used
if (IsVerusMainnetActive() &&
height >= vARRRUpdateHeight(false) &&
(height - vARRRUpdateHeight(false)) < 800)
{
activeUpgradesByKey[ResetNotarizationModuloKey()] = CUpgradeDescriptor(ResetNotarizationModuloKey(), 16908802, 3000000, 0);
}

if (upgradeData.size())
{
for (auto &oneUpgrade : upgradeData)
Expand Down

0 comments on commit aa53dc0

Please sign in to comment.