diff --git a/core/src/main/java/com/google/bitcoin/core/Wallet.java b/core/src/main/java/com/google/bitcoin/core/Wallet.java index 1276ab7c..9311b309 100644 --- a/core/src/main/java/com/google/bitcoin/core/Wallet.java +++ b/core/src/main/java/com/google/bitcoin/core/Wallet.java @@ -741,7 +741,7 @@ public class Wallet implements Serializable, BlockChainListener, PeerFilterProvi } } } - if (takeAction) { + if (takeAction && !doubleSpentTxns.isEmpty()) { killTx(tx, doubleSpentTxns); } return !doubleSpentTxns.isEmpty();