mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-01 21:17:13 +00:00
Remove tx from TransactionConfidence
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user