Use 60 days for TTL for alert. Cleanups.

This commit is contained in:
Manfred Karrer 2018-01-10 22:21:32 +01:00
parent 5d87e5e9c7
commit 27d1083380
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46
4 changed files with 7 additions and 10 deletions

View File

@ -52,8 +52,8 @@ public final class Alert implements ProtectedStoragePayload {
@Nullable
private PublicKey ownerPubKey;
// Should be only used in emergency case if we need to add data but do not want to break backward compatibility
// at the P2P network storage checks. The hash of the object will be used to verify if the data is valid. Any new
// Should be only used in emergency case if we need to add data but do not want to break backward compatibility
// at the P2P network storage checks. The hash of the object will be used to verify if the data is valid. Any new
// field in a class would break that hash and therefore break the storage mechanism.
@Nullable
private Map<String, String> extraDataMap;
@ -119,7 +119,7 @@ public final class Alert implements ProtectedStoragePayload {
@Override
public long getTTL() {
return TimeUnit.DAYS.toMillis(30);
return TimeUnit.DAYS.toMillis(60);
}
public void setSigAndPubKey(String signatureAsBase64, PublicKey ownerPubKey) {

View File

@ -323,11 +323,8 @@ public class TraderDisputeView extends ActivatableView<VBox, Void> {
.show();
}
} else if (Utilities.isAltOrCtrlPressed(KeyCode.ENTER, event)) {
if (selectedDispute != null) {
if (messagesInputBox.isVisible() && inputTextArea.isFocused()) {
onTrySendMessage();
}
}
if (selectedDispute != null && messagesInputBox.isVisible() && inputTextArea.isFocused())
onTrySendMessage();
}
};
}

View File

@ -259,7 +259,7 @@ class OfferBookViewModel extends ActivatableViewModel {
}
boolean hasSufficientPeersForBroadcast() {
return walletsSetup.hasSufficientPeersForBroadcast();
return walletsSetup.hasSufficientPeersForBroadcast();
}
TradeCurrency getSelectedTradeCurrency() {

View File

@ -34,7 +34,7 @@ import java.security.Security;
@Slf4j
public class Monitor {
public static final String VERSION = "1.0.0";
public static final String VERSION = "1.0.1";
private static MonitorEnvironment environment;
@Getter