Skip to content

Commit

Permalink
p2p alert msg logging: Ignore "Alert key compromised, upgrade require…
Browse files Browse the repository at this point in the history
…d" msg.
  • Loading branch information
oscarguindzberg committed Dec 20, 2018
1 parent 76cf53e commit b2e11ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/org/bitcoinj/core/Peer.java
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,8 @@ protected void processNotFoundMessage(NotFoundMessage m) {
protected void processAlert(AlertMessage m) {
try {
if (m.isSignatureValid()) {
log.debug("Received alert from peer {}: {}", this, m.getStatusBar());
if(!m.getStatusBar().contains("Alert key compromised, upgrade required"))
log.debug("Received alert from peer {}: {}", this, m.getStatusBar());
} else {
log.debug("Received alert with invalid signature from peer {}: {}", this, m.getStatusBar());
}
Expand Down

1 comment on commit b2e11ec

@ManfredKarrer
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, if statement can be removed.

Please sign in to comment.