3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +00:00

PeerGroup: Don't rethrow a runtime exception and kill the peer if a broadcast takes an exception, this can occur if there is a reject message.

This commit is contained in:
Mike Hearn 2015-01-10 00:51:48 +01:00
parent 7970b52504
commit 6efa8a4fac

View File

@ -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