Skip to content

Commit

Permalink
Include in the filter ouputs that are spent
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarguindzberg committed Dec 16, 2020
1 parent 1a786a2 commit bc8d2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/bitcoinj/wallet/Wallet.java
Original file line number Diff line number Diff line change
Expand Up @@ -4896,7 +4896,7 @@ private boolean isTxOutputBloomFilterable(TransactionOutput out) {
Script script = out.getScriptPubKey();
boolean isScriptTypeSupported = ScriptPattern.isP2PK(script) || ScriptPattern.isP2SH(script)
|| ScriptPattern.isP2WPKH(script) || ScriptPattern.isP2WSH(script);
return (isScriptTypeSupported && myUnspents.contains(out)) || watchedScripts.contains(script);
return (isScriptTypeSupported && out.isMine(this)) || watchedScripts.contains(script);
}

/**
Expand Down

0 comments on commit bc8d2e7

Please sign in to comment.