Make it compile and apply some fixes

This commit is contained in:
lateminer
2018-10-14 22:49:30 +03:00
parent af1585d232
commit eea97b0e37
6 changed files with 34 additions and 24 deletions

View File

@@ -13,9 +13,9 @@
uint256 CBlockHeader::GetHash() const
{
if (nVersion > 6)
return SerializeHash(*this);
return GetPoWHash();
if (nVersion > 6)
return SerializeHash(*this);
return GetPoWHash();
}
uint256 CBlockHeader::GetPoWHash() const
@@ -34,8 +34,8 @@ std::string CBlock::ToString() const
hashPrevBlock.ToString(),
hashMerkleRoot.ToString(),
nTime, nBits, nNonce,
vtx.size(),
HexStr(vchBlockSig.begin(), vchBlockSig.end()));
vtx.size(),
HexStr(vchBlockSig.begin(), vchBlockSig.end()));
for (unsigned int i = 0; i < vtx.size(); i++)
{
s << " " << vtx[i].ToString() << "\n";