diff --git a/core/src/main/java/bisq/core/btc/wallet/WalletService.java b/core/src/main/java/bisq/core/btc/wallet/WalletService.java index c2badb35184..8cd19d7dcb3 100644 --- a/core/src/main/java/bisq/core/btc/wallet/WalletService.java +++ b/core/src/main/java/bisq/core/btc/wallet/WalletService.java @@ -837,17 +837,12 @@ public static Transaction maybeAddTxToWallet(byte[] serializedTransaction, Wallet wallet, TransactionConfidence.Source source) throws VerificationException { Transaction tx = new Transaction(wallet.getParams(), serializedTransaction); - Transaction walletTransaction = wallet.getTransaction(tx.getTxId()); - - if (walletTransaction == null) { + if (wallet.getTransaction(tx.getTxId()) == null) { // We need to recreate the transaction otherwise we get a null pointer... tx.getConfidence(Context.get()).setSource(source); - //wallet.maybeCommitTx(tx); wallet.receivePending(tx, null, true); - return tx; - } else { - return walletTransaction; } + return wallet.getTransaction(tx.getTxId()); } public static Transaction maybeAddNetworkTxToWallet(byte[] serializedTransaction,