Fix RPC description of supermajority based forks

This commit is contained in:
langerhans 2019-07-14 19:38:26 +02:00
parent 5d58c691ca
commit 2de4045585

View file

@ -1076,7 +1076,7 @@ static UniValue SoftForkMajorityDesc(int version, CBlockIndex* pindex, const Con
CBlockIndex* pstart = pindex;
for (int i = 0; i < consensusParams.nMajorityWindow && pstart != NULL; i++)
{
if (pstart->nVersion >= version)
if (pstart->GetBaseVersion() >= version)
++nFound;
pstart = pstart->pprev;
}