Merge pull request #1601 from langerhans/1.14-supermajority-rpc

Fix RPC description of supermajority based forks
This commit is contained in:
Max K 2019-07-14 20:53:40 +02:00 committed by GitHub
commit c348148022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}