Package org.bitcoinj.wallet
Class KeyTimeCoinSelector
- java.lang.Object
-
- org.bitcoinj.wallet.KeyTimeCoinSelector
-
- All Implemented Interfaces:
CoinSelector
public class KeyTimeCoinSelector extends java.lang.Object implements CoinSelector
A coin selector that takes all coins assigned to keys created before the given timestamp. Used as part of the implementation ofWallet.setKeyRotationTime(java.util.Date)
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_SIMULTANEOUS_INPUTS
A number of inputs chosen to avoid hittingTransaction.MAX_STANDARD_TX_SIZE
-
Constructor Summary
Constructors Constructor Description KeyTimeCoinSelector(Wallet wallet, long unixTimeSeconds, boolean ignorePending)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoinSelection
select(Coin target, java.util.List<TransactionOutput> candidates)
Creates a CoinSelection that tries to meet the target amount of value.
-
-
-
Field Detail
-
MAX_SIMULTANEOUS_INPUTS
public static final int MAX_SIMULTANEOUS_INPUTS
A number of inputs chosen to avoid hittingTransaction.MAX_STANDARD_TX_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KeyTimeCoinSelector
public KeyTimeCoinSelector(Wallet wallet, long unixTimeSeconds, boolean ignorePending)
-
-
Method Detail
-
select
public CoinSelection select(Coin target, java.util.List<TransactionOutput> candidates)
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
-
-