Add code comments about CNoteData::witnessHeight

This commit is contained in:
Jack Grigg
2016-11-15 16:42:22 +13:00
parent 4a6a48479d
commit ccfd8aae1d
2 changed files with 17 additions and 1 deletions

View File

@@ -762,6 +762,8 @@ void CWallet::DecrementNoteWitnesses(const CBlockIndex* pindex)
if (nd->witnesses.size() > 0) {
nd->witnesses.pop_front();
}
// pindex is the block being removed, so the new witness cache
// height is one below it.
nd->witnessHeight = pindex->nHeight - 1;
}
}