com.google.bitcoin.wallet
Class KeyTimeCoinSelector

java.lang.Object
  extended by com.google.bitcoin.wallet.KeyTimeCoinSelector
All Implemented Interfaces:
CoinSelector

public class KeyTimeCoinSelector
extends Object
implements 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.util.Date).


Field Summary
static int MAX_SIMULTANEOUS_INPUTS
          A number of inputs chosen to avoid hitting com.google.bitcoin.core.Transaction.MAX_STANDARD_TX_SIZE
 
Constructor Summary
KeyTimeCoinSelector(Wallet wallet, long unixTimeSeconds, boolean ignorePending)
           
 
Method Summary
 CoinSelection select(BigInteger target, LinkedList<TransactionOutput> candidates)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SIMULTANEOUS_INPUTS

public static final int MAX_SIMULTANEOUS_INPUTS
A number of inputs chosen to avoid hitting com.google.bitcoin.core.Transaction.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(BigInteger target,
                            LinkedList<TransactionOutput> candidates)
Specified by:
select in interface CoinSelector


Copyright © 2014. All rights reserved.