diff --git a/core/src/main/java/org/bitcoinj/core/PeerGroup.java b/core/src/main/java/org/bitcoinj/core/PeerGroup.java index 8ed76a43..1c911cd8 100644 --- a/core/src/main/java/org/bitcoinj/core/PeerGroup.java +++ b/core/src/main/java/org/bitcoinj/core/PeerGroup.java @@ -1657,9 +1657,8 @@ public class PeerGroup implements TransactionBroadcaster { @Override public void onFailure(Throwable throwable) { - // This can't happen with the current code, but just in case one day that changes ... + // This can happen if we get a reject message from a peer. runningBroadcasts.remove(broadcast); - throw new RuntimeException(throwable); } }); // Keep a reference to the TransactionBroadcast object. This is important because otherwise, the entire tree