Revert POS change
This commit is contained in:
10
src/pow.cpp
10
src/pow.cpp
@@ -275,15 +275,7 @@ uint32_t lwmaGetNextPOSRequired(const CBlockIndex* pindexLast, const Consensus::
|
|||||||
if ((j - i) >= VERUS_CONSECUTIVE_POS_THRESHOLD)
|
if ((j - i) >= VERUS_CONSECUTIVE_POS_THRESHOLD)
|
||||||
{
|
{
|
||||||
// if this is real time, return zero
|
// if this is real time, return zero
|
||||||
if ((strcmp(ASSETCHAINS_SYMBOL, "VRSC") == 0 &&
|
if (j == (N - 1))
|
||||||
NetworkUpgradeActive(pindexLast->GetHeight(), params, Consensus::UPGRADE_SAPLING)) ||
|
|
||||||
(strcmp(ASSETCHAINS_SYMBOL, "VERUSTEST") == 0 && pindexLast->GetHeight() > 600))
|
|
||||||
{
|
|
||||||
// target of 0 (virtually impossible), if we hit max consecutive POS blocks
|
|
||||||
nextTarget.SetCompact(0);
|
|
||||||
return nextTarget.GetCompact();
|
|
||||||
}
|
|
||||||
else if (j == (N - 1))
|
|
||||||
{
|
{
|
||||||
// target of 0 (virtually impossible), if we hit max consecutive POS blocks
|
// target of 0 (virtually impossible), if we hit max consecutive POS blocks
|
||||||
nextTarget.SetCompact(0);
|
nextTarget.SetCompact(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user