Fixed IsValidSuperblockHeight logic

Note this has an effect on testing because we can now only create
1 superblock per day.  Devs may need to temporarily change testnet params
for easier testing.
This commit is contained in:
Tim Flynn 2016-08-14 14:15:16 -04:00
parent a937c76eb5
commit d116aa5366

View File

@ -92,7 +92,7 @@ public:
static bool IsValidSuperblockHeight(int nBlockHeight)
{
// SUPERBLOCKS CAN HAPPEN ONCE PER DAY
return nBlockHeight % Params().GetConsensus().nSuperblockCycle;
return ((nBlockHeight % Params().GetConsensus().nSuperblockCycle) == 1);
}
static bool IsSuperblockTriggered(int nBlockHeight);