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:
parent
7970b52504
commit
6efa8a4fac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user