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