Correctly set CNoteData::witnessHeight when decrementing witness caches

Closes #1715
This commit is contained in:
Jack Grigg
2016-11-15 14:03:37 +13:00
parent 28d635c8b7
commit 40ef121e6a
3 changed files with 108 additions and 9 deletions

View File

@@ -619,7 +619,7 @@ protected:
void IncrementNoteWitnesses(const CBlockIndex* pindex,
const CBlock* pblock,
ZCIncrementalMerkleTree& tree);
void DecrementNoteWitnesses();
void DecrementNoteWitnesses(const CBlockIndex* pindex);
template <typename WalletDB>
void WriteWitnessCache(WalletDB& walletdb) {