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
|
// Filter the transactions before checking for notes
|
||||||
if (!CheckFinalTx(wtx) ||
|
if (!CheckFinalTx(wtx) ||
|
||||||
wtx.GetBlocksToMaturity() > 0 ||
|
|
||||||
wtx.GetDepthInMainChain() < minDepth ||
|
wtx.GetDepthInMainChain() < minDepth ||
|
||||||
wtx.GetDepthInMainChain() > maxDepth) {
|
wtx.GetDepthInMainChain() > maxDepth) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Filter coinbase transactions that don't have Sapling outputs
|
||||||
|
if (wtx.IsCoinBase() && wtx.mapSaplingNoteData.empty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
for (auto & pair : wtx.mapSproutNoteData) {
|
for (auto & pair : wtx.mapSproutNoteData) {
|
||||||
JSOutPoint jsop = pair.first;
|
JSOutPoint jsop = pair.first;
|
||||||
SproutNoteData nd = pair.second;
|
SproutNoteData nd = pair.second;
|
||||||
|
|
Loading…
Reference in New Issue