Remove tx from TransactionConfidence

This commit is contained in:
Devrandom
2014-11-05 10:56:07 -08:00
committed by Mike Hearn
parent ec7cec67a7
commit b9bca58f26
10 changed files with 44 additions and 39 deletions

View File

@@ -93,11 +93,10 @@ public class ForwardingService {
// to be double spent, no harm done. Wallet.allowSpendingUnconfirmedTransactions() would have to
// be called in onSetupCompleted() above. But we don't do that here to demonstrate the more common
// case of waiting for a block.
Futures.addCallback(tx.getConfidence().getDepthFuture(1), new FutureCallback<Transaction>() {
Futures.addCallback(tx.getConfidence().getDepthFuture(1), new FutureCallback<TransactionConfidence>() {
@Override
public void onSuccess(Transaction result) {
// "result" here is the same as "tx" above, but we use it anyway for clarity.
forwardCoins(result);
public void onSuccess(TransactionConfidence result) {
forwardCoins(tx);
}
@Override