wallet: Include coinbase txs in Sapling note selection
This commit is contained in:
parent
99ec1ff971
commit
9b3a261831
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue