Version 0.3.5

This commit is contained in:
Manfred Karrer 2016-03-11 17:20:58 +01:00
parent 7c63e5ab00
commit 62d4d50392
14 changed files with 17 additions and 20 deletions

View file

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.bitsquare</groupId> <groupId>io.bitsquare</groupId>
<version>0.3.5-SNAPSHOT</version> <version>0.3.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View file

@ -27,12 +27,10 @@ import ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class Log { public class Log {
private static boolean PRINT_TRACE_METHOD = true;
private static SizeBasedTriggeringPolicy triggeringPolicy; private static SizeBasedTriggeringPolicy triggeringPolicy;
private static Logger logbackLogger; private static Logger logbackLogger;
public static void setup(String fileName, boolean useDetailedLogging) { public static void setup(String fileName, boolean useDetailedLogging) {
Log.PRINT_TRACE_METHOD = useDetailedLogging;
LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory(); LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
RollingFileAppender appender = new RollingFileAppender(); RollingFileAppender appender = new RollingFileAppender();
@ -62,9 +60,7 @@ public class Log {
appender.start(); appender.start();
logbackLogger = loggerContext.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME); logbackLogger = loggerContext.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
//TODO for now use always trace logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.INFO);
logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.TRACE);
// logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.DEBUG);
logbackLogger.addAppender(appender); logbackLogger.addAppender(appender);
} }

View file

@ -6,7 +6,7 @@
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.bitsquare</groupId> <groupId>io.bitsquare</groupId>
<version>0.3.5-SNAPSHOT</version> <version>0.3.5</version>
</parent> </parent>
<artifactId>core</artifactId> <artifactId>core</artifactId>

View file

@ -36,14 +36,16 @@ public final class Alert implements StoragePayload {
private static final long TTL = TimeUnit.DAYS.toMillis(10); private static final long TTL = TimeUnit.DAYS.toMillis(10);
public final String message; public final String message;
public final String version;
public final boolean isUpdateInfo; public final boolean isUpdateInfo;
private String signatureAsBase64; private String signatureAsBase64;
private transient PublicKey storagePublicKey; private transient PublicKey storagePublicKey;
private byte[] storagePublicKeyBytes; private byte[] storagePublicKeyBytes;
public Alert(String message, boolean isUpdateInfo) { public Alert(String message, boolean isUpdateInfo, String version) {
this.message = message; this.message = message;
this.isUpdateInfo = isUpdateInfo; this.isUpdateInfo = isUpdateInfo;
this.version = version;
} }
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {

View file

@ -64,7 +64,7 @@ public abstract class BuyerTrade extends Trade {
public void setState(State state) { public void setState(State state) {
super.setState(state); super.setState(state);
if (state == State.WITHDRAW_COMPLETED) if (state == State.WITHDRAW_COMPLETED && tradeProtocol != null)
tradeProtocol.completed(); tradeProtocol.completed();
} }

View file

@ -64,9 +64,7 @@ public abstract class SellerTrade extends Trade {
public void setState(State state) { public void setState(State state) {
super.setState(state); super.setState(state);
if (state == State.WITHDRAW_COMPLETED) if (state == State.WITHDRAW_COMPLETED && tradeProtocol != null)
tradeProtocol.completed(); tradeProtocol.completed();
} }
} }

View file

@ -22,7 +22,7 @@
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.bitsquare</groupId> <groupId>io.bitsquare</groupId>
<version>0.3.5-SNAPSHOT</version> <version>0.3.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View file

@ -19,6 +19,7 @@ package io.bitsquare.gui.main.overlays.windows;
import io.bitsquare.alert.Alert; import io.bitsquare.alert.Alert;
import io.bitsquare.app.BitsquareApp; import io.bitsquare.app.BitsquareApp;
import io.bitsquare.app.Version;
import io.bitsquare.common.util.Tuple2; import io.bitsquare.common.util.Tuple2;
import io.bitsquare.gui.components.InputTextField; import io.bitsquare.gui.components.InputTextField;
import io.bitsquare.gui.main.overlays.Overlay; import io.bitsquare.gui.main.overlays.Overlay;
@ -106,7 +107,7 @@ public class SendAlertMessageWindow extends Overlay<SendAlertMessageWindow> {
sendButton.setOnAction(e -> { sendButton.setOnAction(e -> {
if (alertMessageTextArea.getText().length() > 0 && keyInputTextField.getText().length() > 0) { if (alertMessageTextArea.getText().length() > 0 && keyInputTextField.getText().length() > 0) {
if (sendAlertMessageHandler.handle( if (sendAlertMessageHandler.handle(
new Alert(alertMessageTextArea.getText(), isUpdateCheckBox.isSelected()), new Alert(alertMessageTextArea.getText(), isUpdateCheckBox.isSelected(), Version.VERSION),
keyInputTextField.getText())) keyInputTextField.getText()))
hide(); hide();
else else

View file

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.bitsquare</groupId> <groupId>io.bitsquare</groupId>
<version>0.3.5-SNAPSHOT</version> <version>0.3.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.bitsquare</groupId> <groupId>io.bitsquare</groupId>
<version>0.3.5-SNAPSHOT</version> <version>0.3.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.bitsquare</groupId> <groupId>io.bitsquare</groupId>
<version>0.3.5-SNAPSHOT</version> <version>0.3.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.bitsquare</groupId> <groupId>io.bitsquare</groupId>
<version>0.3.5-SNAPSHOT</version> <version>0.3.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View file

@ -6,7 +6,7 @@
<groupId>io.bitsquare</groupId> <groupId>io.bitsquare</groupId>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>0.3.5-SNAPSHOT</version> <version>0.3.5</version>
<description>Bitsquare - The decentralized bitcoin exchange</description> <description>Bitsquare - The decentralized bitcoin exchange</description>
<url>https://bitsquare.io</url> <url>https://bitsquare.io</url>

View file

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>parent</artifactId> <artifactId>parent</artifactId>
<groupId>io.bitsquare</groupId> <groupId>io.bitsquare</groupId>
<version>0.3.5-SNAPSHOT</version> <version>0.3.5</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>