mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-23 21:34:45 +00:00
Fix masking of irrelevant bits in address groups.
This commit is contained in:
parent
ddd8d80c63
commit
bba3db1a40
@ -983,7 +983,7 @@ std::vector<unsigned char> CNetAddr::GetGroup() const
|
|||||||
nBits -= 8;
|
nBits -= 8;
|
||||||
}
|
}
|
||||||
if (nBits > 0)
|
if (nBits > 0)
|
||||||
vchRet.push_back(GetByte(15 - nStartByte) | ((1 << nBits) - 1));
|
vchRet.push_back(GetByte(15 - nStartByte) | ((1 << (8 - nBits)) - 1));
|
||||||
|
|
||||||
return vchRet;
|
return vchRet;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user