mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-26 00:15:18 -04:00
[encapsulation] Alert::TTL. spaces.
This commit is contained in:
parent
a4d7731987
commit
088334014c
1 changed files with 1 additions and 4 deletions
|
@ -26,7 +26,7 @@ public final class Alert implements PubKeyProtectedExpirablePayload {
|
||||||
// That object is sent over the wire, so we need to take care of version compatibility.
|
// That object is sent over the wire, so we need to take care of version compatibility.
|
||||||
private static final long serialVersionUID = Version.NETWORK_PROTOCOL_VERSION;
|
private static final long serialVersionUID = Version.NETWORK_PROTOCOL_VERSION;
|
||||||
|
|
||||||
public static final long TTL = 10 * 24 * 60 * 60 * 1000; // 10 days
|
private static final long TTL = 10 * 24 * 60 * 60 * 1000; // 10 days
|
||||||
|
|
||||||
public final String message;
|
public final String message;
|
||||||
private String signatureAsBase64;
|
private String signatureAsBase64;
|
||||||
|
@ -59,12 +59,9 @@ public final class Alert implements PubKeyProtectedExpirablePayload {
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) return true;
|
if (this == o) return true;
|
||||||
if (!(o instanceof Alert)) return false;
|
if (!(o instanceof Alert)) return false;
|
||||||
|
|
||||||
Alert that = (Alert) o;
|
Alert that = (Alert) o;
|
||||||
|
|
||||||
if (message != null ? !message.equals(that.message) : that.message != null) return false;
|
if (message != null ? !message.equals(that.message) : that.message != null) return false;
|
||||||
return !(getSignatureAsBase64() != null ? !getSignatureAsBase64().equals(that.getSignatureAsBase64()) : that.getSignatureAsBase64() != null);
|
return !(getSignatureAsBase64() != null ? !getSignatureAsBase64().equals(that.getSignatureAsBase64()) : that.getSignatureAsBase64() != null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue