Copy over CNoteData::witnessHeight when updating wallet tx

This commit is contained in:
Jack Grigg
2016-11-15 14:05:05 +13:00
parent 40ef121e6a
commit 4a6a48479d
2 changed files with 4 additions and 0 deletions

View File

@@ -1106,6 +1106,7 @@ bool CWallet::UpdatedNoteData(const CWalletTx& wtxIn, CWalletTx& wtx)
tmp.at(nd.first).witnesses.assign(
nd.second.witnesses.cbegin(), nd.second.witnesses.cend());
}
tmp.at(nd.first).witnessHeight = nd.second.witnessHeight;
}
// Now copy over the updated note data
wtx.mapNoteData = tmp;