3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 11:45:51 +00:00

Make AlertMessage toString contain the actual alert message.

This commit is contained in:
Mike Hearn 2012-06-09 23:57:41 +02:00
parent 96e27cfe27
commit 7d1c982c9a

View File

@ -57,6 +57,11 @@ public class AlertMessage extends Message {
super(params, payloadBytes, 0); super(params, payloadBytes, 0);
} }
@Override
public String toString() {
return "ALERT: " + getStatusBar();
}
@Override @Override
void parse() throws ProtocolException { void parse() throws ProtocolException {
// Alerts are formatted in two levels. The top level contains two byte arrays: a signature, and a serialized // Alerts are formatted in two levels. The top level contains two byte arrays: a signature, and a serialized