mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 06:44:16 +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:
parent
7970b52504
commit
6efa8a4fac
@ -1657,9 +1657,8 @@ public class PeerGroup implements TransactionBroadcaster {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Throwable throwable) {
|
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);
|
runningBroadcasts.remove(broadcast);
|
||||||
throw new RuntimeException(throwable);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Keep a reference to the TransactionBroadcast object. This is important because otherwise, the entire tree
|
// Keep a reference to the TransactionBroadcast object. This is important because otherwise, the entire tree
|
||||||
|
Loading…
Reference in New Issue
Block a user