candidates.removeAll(pledges.keySet());
}
// Search for a perfect match first, to see if we can avoid creating a dependency transaction.
for (TransactionOutput op : candidates)
if (op.getValue().equals(target))
return new CoinSelection(op.getValue(), ImmutableList.of(op));
// Delegate back to the default behaviour.
return super.select(target, candidates);
}