mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
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:
parent
a937c76eb5
commit
d116aa5366
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user