Read hashReserved from disk instead of assuming 0

Related to https://github.com/zcash/zcash/pull/2931
This commit is contained in:
Jonathan "Duke" Leto
2018-02-17 20:45:00 -08:00
parent fc5bee9e14
commit c989bc86e3

View File

@@ -302,6 +302,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
pindexNew->nUndoPos = diskindex.nUndoPos;
pindexNew->hashAnchor = diskindex.hashAnchor;
pindexNew->nVersion = diskindex.nVersion;
pindexNew->hashReserved = diskindex.hashReserved;
pindexNew->hashMerkleRoot = diskindex.hashMerkleRoot;
pindexNew->nTime = diskindex.nTime;
pindexNew->nBits = diskindex.nBits;