public class DefaultCoinSelector extends Object implements CoinSelector
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 and Description |
---|
DefaultCoinSelector() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSelectable(Transaction tx) |
CoinSelection |
select(BigInteger biTarget,
LinkedList<TransactionOutput> candidates) |
protected boolean |
shouldSelect(Transaction tx)
Sub-classes can override this to just customize whether transactions are usable, but keep age sorting.
|
public CoinSelection select(BigInteger biTarget, LinkedList<TransactionOutput> candidates)
select
in interface CoinSelector
protected boolean shouldSelect(Transaction tx)
public static boolean isSelectable(Transaction tx)
Copyright © 2014. All rights reserved.