Display proper POS difficulty on minted block. Add missing curly brace.

This commit is contained in:
Michael Toutonghi
2018-05-20 13:13:06 -07:00
parent 3c8a1c9d1f
commit b9956efcb4
2 changed files with 14 additions and 11 deletions

View File

@@ -247,9 +247,11 @@ uint32_t lwmaGetNextPOSRequired(const CBlockIndex* pindexLast, const Consensus::
{
// if this is real time, return zero
if (i == (N - 1))
{
// target of 0 (virtually impossible), if we hit max consecutive POS blocks
nextTarget.SetCompact(0);
return nextTarget.GetCompact();
}
}
st >>= 1;
}