From 7d1c982c9ab1eec6644420ac7259194839085932 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Sat, 9 Jun 2012 23:57:41 +0200 Subject: [PATCH] Make AlertMessage toString contain the actual alert message. --- core/src/main/java/com/google/bitcoin/core/AlertMessage.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/com/google/bitcoin/core/AlertMessage.java b/core/src/main/java/com/google/bitcoin/core/AlertMessage.java index 5f5c98b5..bfeb190e 100644 --- a/core/src/main/java/com/google/bitcoin/core/AlertMessage.java +++ b/core/src/main/java/com/google/bitcoin/core/AlertMessage.java @@ -57,6 +57,11 @@ public class AlertMessage extends Message { super(params, payloadBytes, 0); } + @Override + public String toString() { + return "ALERT: " + getStatusBar(); + } + @Override void parse() throws ProtocolException { // Alerts are formatted in two levels. The top level contains two byte arrays: a signature, and a serialized