Package org.bitcoinj.wallet
Class KeyTimeCoinSelector
java.lang.Object
org.bitcoinj.wallet.KeyTimeCoinSelector
- All Implemented Interfaces:
CoinSelector
A coin selector that takes all coins assigned to keys created before the given timestamp.
Used as part of the implementation of
Wallet.setKeyRotationTime(java.time.Instant)
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A number of inputs chosen to avoid hittingTransaction.MAX_STANDARD_TX_SIZE
-
Constructor Summary
ConstructorDescriptionKeyTimeCoinSelector
(Wallet wallet, long timeSecs, boolean ignorePending) Deprecated.KeyTimeCoinSelector
(Wallet wallet, Instant time, boolean ignorePending) -
Method Summary
Modifier and TypeMethodDescriptionselect
(Coin target, List<TransactionOutput> candidates) Creates a CoinSelection that tries to meet the target amount of value.
-
Field Details
-
MAX_SIMULTANEOUS_INPUTS
public static final int MAX_SIMULTANEOUS_INPUTSA number of inputs chosen to avoid hittingTransaction.MAX_STANDARD_TX_SIZE
- See Also:
-
-
Constructor Details
-
KeyTimeCoinSelector
-
KeyTimeCoinSelector
Deprecated.
-
-
Method Details
-
select
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
-
KeyTimeCoinSelector(Wallet, Instant, boolean)