public class FilteringCoinSelector extends java.lang.Object implements CoinSelector
| Modifier and Type | Field and Description |
|---|---|
protected CoinSelector |
delegate |
protected java.util.HashSet<TransactionOutPoint> |
spent |
| Constructor and Description |
|---|
FilteringCoinSelector(CoinSelector delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
excludeOutputsSpentBy(Transaction tx) |
CoinSelection |
select(Coin target,
java.util.List<TransactionOutput> candidates)
Creates a CoinSelection that tries to meet the target amount of value.
|
protected CoinSelector delegate
protected java.util.HashSet<TransactionOutPoint> spent
public FilteringCoinSelector(CoinSelector delegate)
public void excludeOutputsSpentBy(Transaction tx)
public CoinSelection select(Coin target, java.util.List<TransactionOutput> candidates)
CoinSelectorDefaultCoinSelector.select in interface CoinSelector