Skip to content

Commit

Permalink
Ignore "Alert key compromised" message
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed May 26, 2018
1 parent 4349381 commit 6728ef8
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 @@ -643,7 +643,8 @@ protected void processNotFoundMessage(NotFoundMessage m) {
protected void processAlert(AlertMessage m) {
try {
if (m.isSignatureValid()) {
log.info("Received alert from peer {}: {}", this, m.getStatusBar());
if(!m.getStatusBar().contains("Alert key compromised, upgrade required"))
log.info("Received alert from peer {}: {}", this, m.getStatusBar());
} else {
log.warn("Received alert with invalid signature from peer {}: {}", this, m.getStatusBar());
}
Expand Down

0 comments on commit 6728ef8

Please sign in to comment.