Fix RPC description of supermajority based forks
This commit is contained in:
parent
5d58c691ca
commit
2de4045585
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue