Fix missing hashFinalSaplingRoot in block header
This commit is contained in:
@@ -52,8 +52,7 @@ CBlockHeader CBlockIndex::GetBlockHeader() const
|
||||
header.hashPrevBlock = pprev->GetBlockHash();
|
||||
}
|
||||
header.hashMerkleRoot = hashMerkleRoot;
|
||||
// Hush does not have this, maybe some day
|
||||
// header.hashBlockCommitments = hashBlockCommitments;
|
||||
header.hashFinalSaplingRoot = hashFinalsaplingRoot;
|
||||
header.nTime = nTime;
|
||||
header.nBits = nBits;
|
||||
header.nNonce = nNonce;
|
||||
@@ -62,7 +61,7 @@ CBlockHeader CBlockIndex::GetBlockHeader() const
|
||||
} else {
|
||||
CDiskBlockIndex dbindex;
|
||||
if (!pblocktree->ReadDiskBlockIndex(GetBlockHash(), dbindex)) {
|
||||
LogPrintf("%s: Failed to read index entry", __func__);
|
||||
LogPrintf("%s: ReadDiskBlockIndex failed to read index entry of block %s", __func__, GetBlockHash().ToString().c_str());
|
||||
throw std::runtime_error("Failed to read index entry");
|
||||
}
|
||||
header.nSolution = dbindex.GetSolution();
|
||||
|
||||
Reference in New Issue
Block a user