wallet: Include coinbase txs in Sapling note selection

This commit is contained in:
Jack Grigg 2019-12-13 17:15:57 +00:00
parent 99ec1ff971
commit 9b3a261831
1 changed files with 5 additions and 1 deletions

View File

@ -4885,12 +4885,16 @@ void CWallet::GetFilteredNotes(
// Filter the transactions before checking for notes
if (!CheckFinalTx(wtx) ||
wtx.GetBlocksToMaturity() > 0 ||
wtx.GetDepthInMainChain() < minDepth ||
wtx.GetDepthInMainChain() > maxDepth) {
continue;
}
// Filter coinbase transactions that don't have Sapling outputs
if (wtx.IsCoinBase() && wtx.mapSaplingNoteData.empty()) {
continue;
}
for (auto & pair : wtx.mapSproutNoteData) {
JSOutPoint jsop = pair.first;
SproutNoteData nd = pair.second;