Package org.bitcoinj.wallet
Class FilteringCoinSelector
java.lang.Object
org.bitcoinj.wallet.FilteringCoinSelector
- All Implemented Interfaces:
CoinSelector
A filtering coin selector delegates to another coin selector, but won't select outputs spent by the given transactions.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CoinSelector
protected final Set<TransactionOutPoint>
-
Constructor Summary
ConstructorDescriptionFilteringCoinSelector
(CoinSelector delegate, List<TransactionOutPoint> excludedOutPoints) -
Method Summary
Modifier and TypeMethodDescriptionselect
(Coin target, List<TransactionOutput> candidates) Creates a CoinSelection that tries to meet the target amount of value.
-
Field Details
-
delegate
-
spent
-
-
Constructor Details
-
FilteringCoinSelector
-
-
Method Details
-
select
Description copied from interface:CoinSelector
Creates a CoinSelection that tries to meet the target amount of value. The candidates list is given to this call and can be edited freely. See the docs for CoinSelection to learn more, or look a the implementation ofDefaultCoinSelector
.- Specified by:
select
in interfaceCoinSelector
-