Use a boost::optional for nCachedBranchId
This enables us to distinguish between it being unset vs. being set to zero.
This commit is contained in:
@@ -309,7 +309,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts()
|
||||
pindexNew->nNonce = diskindex.nNonce;
|
||||
pindexNew->nSolution = diskindex.nSolution;
|
||||
pindexNew->nStatus = diskindex.nStatus;
|
||||
pindexNew->nConsensusBranchId = diskindex.nConsensusBranchId;
|
||||
pindexNew->nCachedBranchId = diskindex.nCachedBranchId;
|
||||
pindexNew->nTx = diskindex.nTx;
|
||||
pindexNew->nSproutValue = diskindex.nSproutValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user