diff options
| author | langerhans <[email protected]> | 2019-07-14 19:38:26 +0200 |
|---|---|---|
| committer | langerhans <[email protected]> | 2019-07-14 19:38:26 +0200 |
| commit | 2de40455854e29ea9c98b19b204ae4a5489f7633 (patch) | |
| tree | 4d035dc1672a22ccffb429be70843dd7ac1d7573 /src/rpc/blockchain.cpp | |
| parent | Merge branch 'rnicoll-rnicoll/1.14-litecoin-scrypt' into 1.14-maint (diff) | |
| download | discoin-2de40455854e29ea9c98b19b204ae4a5489f7633.tar.xz discoin-2de40455854e29ea9c98b19b204ae4a5489f7633.zip | |
Fix RPC description of supermajority based forks
Diffstat (limited to 'src/rpc/blockchain.cpp')
| -rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index e1119495f..6d3264130 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -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; } |