Package org.bitcoinj.wallet
Class DefaultCoinSelector
java.lang.Object
org.bitcoinj.wallet.DefaultCoinSelector
- All Implemented Interfaces:
- CoinSelector
- Direct Known Subclasses:
- AllowUnconfirmedCoinSelector
This class implements a 
CoinSelector which attempts to get the highest priority
 possible. This means that the transaction is the most likely to get confirmed. Note that this means we may end up
 "spending" more priority than would be required to get the transaction we are creating confirmed.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic DefaultCoinSelectorget()Returns a global static instance of the selector.static booleanselect(Coin target, List<TransactionOutput> candidates) Creates a CoinSelection that tries to meet the target amount of value.protected booleanSub-classes can override this to just customize whether transactions are usable, but keep age sorting.
- 
Constructor Details- 
DefaultCoinSelectorprotected DefaultCoinSelector()
 
- 
- 
Method Details- 
selectDescription copied from interface:CoinSelectorCreates 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:
- selectin interface- CoinSelector
 
- 
shouldSelectSub-classes can override this to just customize whether transactions are usable, but keep age sorting.
- 
isSelectable
- 
getReturns a global static instance of the selector.
 
-