com.google.bitcoin.wallet
Class AllowUnconfirmedCoinSelector

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

public class AllowUnconfirmedCoinSelector
extends DefaultCoinSelector

This coin selector will select any transaction at all, regardless of where it came from or whether it was confirmed yet. However immature coinbases will not be included (would be a protocol violation).


Constructor Summary
AllowUnconfirmedCoinSelector()
           
 
Method Summary
static AllowUnconfirmedCoinSelector get()
          Returns a global static instance of the selector.
protected  boolean shouldSelect(Transaction tx)
          Sub-classes can override this to just customize whether transactions are usable, but keep age sorting.
 
Methods inherited from class com.google.bitcoin.wallet.DefaultCoinSelector
isSelectable, select
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowUnconfirmedCoinSelector

public AllowUnconfirmedCoinSelector()
Method Detail

shouldSelect

protected boolean shouldSelect(Transaction tx)
Description copied from class: DefaultCoinSelector
Sub-classes can override this to just customize whether transactions are usable, but keep age sorting.

Overrides:
shouldSelect in class DefaultCoinSelector

get

public static AllowUnconfirmedCoinSelector get()
Returns a global static instance of the selector.



Copyright © 2014. All rights reserved.