mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 23:36:00 -04:00
Version 0.3.5
This commit is contained in:
parent
7c63e5ab00
commit
62d4d50392
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>io.bitsquare</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<version>0.3.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
@ -27,12 +27,10 @@ import ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class Log {
|
||||
private static boolean PRINT_TRACE_METHOD = true;
|
||||
private static SizeBasedTriggeringPolicy triggeringPolicy;
|
||||
private static Logger logbackLogger;
|
||||
|
||||
public static void setup(String fileName, boolean useDetailedLogging) {
|
||||
Log.PRINT_TRACE_METHOD = useDetailedLogging;
|
||||
LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
|
||||
|
||||
RollingFileAppender appender = new RollingFileAppender();
|
||||
@ -62,9 +60,7 @@ public class Log {
|
||||
appender.start();
|
||||
|
||||
logbackLogger = loggerContext.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
|
||||
//TODO for now use always trace
|
||||
logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.TRACE);
|
||||
// logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.DEBUG);
|
||||
logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.INFO);
|
||||
logbackLogger.addAppender(appender);
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>io.bitsquare</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<version>0.3.5</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>core</artifactId>
|
||||
|
@ -36,14 +36,16 @@ public final class Alert implements StoragePayload {
|
||||
private static final long TTL = TimeUnit.DAYS.toMillis(10);
|
||||
|
||||
public final String message;
|
||||
public final String version;
|
||||
public final boolean isUpdateInfo;
|
||||
private String signatureAsBase64;
|
||||
private transient PublicKey storagePublicKey;
|
||||
private byte[] storagePublicKeyBytes;
|
||||
|
||||
public Alert(String message, boolean isUpdateInfo) {
|
||||
public Alert(String message, boolean isUpdateInfo, String version) {
|
||||
this.message = message;
|
||||
this.isUpdateInfo = isUpdateInfo;
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {
|
||||
|
@ -64,7 +64,7 @@ public abstract class BuyerTrade extends Trade {
|
||||
public void setState(State state) {
|
||||
super.setState(state);
|
||||
|
||||
if (state == State.WITHDRAW_COMPLETED)
|
||||
if (state == State.WITHDRAW_COMPLETED && tradeProtocol != null)
|
||||
tradeProtocol.completed();
|
||||
}
|
||||
|
||||
|
@ -64,9 +64,7 @@ public abstract class SellerTrade extends Trade {
|
||||
public void setState(State state) {
|
||||
super.setState(state);
|
||||
|
||||
if (state == State.WITHDRAW_COMPLETED)
|
||||
if (state == State.WITHDRAW_COMPLETED && tradeProtocol != null)
|
||||
tradeProtocol.completed();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -22,7 +22,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>io.bitsquare</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<version>0.3.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
@ -19,6 +19,7 @@ package io.bitsquare.gui.main.overlays.windows;
|
||||
|
||||
import io.bitsquare.alert.Alert;
|
||||
import io.bitsquare.app.BitsquareApp;
|
||||
import io.bitsquare.app.Version;
|
||||
import io.bitsquare.common.util.Tuple2;
|
||||
import io.bitsquare.gui.components.InputTextField;
|
||||
import io.bitsquare.gui.main.overlays.Overlay;
|
||||
@ -106,7 +107,7 @@ public class SendAlertMessageWindow extends Overlay<SendAlertMessageWindow> {
|
||||
sendButton.setOnAction(e -> {
|
||||
if (alertMessageTextArea.getText().length() > 0 && keyInputTextField.getText().length() > 0) {
|
||||
if (sendAlertMessageHandler.handle(
|
||||
new Alert(alertMessageTextArea.getText(), isUpdateCheckBox.isSelected()),
|
||||
new Alert(alertMessageTextArea.getText(), isUpdateCheckBox.isSelected(), Version.VERSION),
|
||||
keyInputTextField.getText()))
|
||||
hide();
|
||||
else
|
||||
|
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>io.bitsquare</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<version>0.3.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>io.bitsquare</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<version>0.3.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>io.bitsquare</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<version>0.3.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>io.bitsquare</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<version>0.3.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
<groupId>io.bitsquare</groupId>
|
||||
<artifactId>parent</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<version>0.3.5</version>
|
||||
<description>Bitsquare - The decentralized bitcoin exchange</description>
|
||||
<url>https://bitsquare.io</url>
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>parent</artifactId>
|
||||
<groupId>io.bitsquare</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<version>0.3.5</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user