diff --git a/.travis.yml b/.travis.yml
index 2d9e4d34..966f07ba 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,14 +1,12 @@
language: java
+
jdk:
-- oraclejdk8
-before-install:
-- echo before-install
-- pip install --user codecov
-install: true
-script:
- - mvn clean install
+ - oraclejdk8
+
notifications:
slack:
secure: "H6eYpuLQatCsKXkgQisjVAx33BiZbA9FZ6KVrdYttjEpaNCH7yZu1/4jcWsLbjwyWi6xbbUYMIYtrjkXbgavFVlhiJ5yAD1KpeVdtMytW1W67oCXGGbG5keHVAXkzxExAQdHzSaoLhERdh0i+STePZu4SuK/ZzmGlfVNZ+pr1EuTdJJ/3Qz1D8nR7Xa+DIW+KZGu4iSRqwQwanl/shhyKZWRkqAB/GTJbeGVMB6Fyogi5xI/YXzFovQaqIcF0zcag0Sv7ja8XiCIlAahkYCAT82wdfM5Fg9VHjVAnUnsFhoADRS2OWr4684rZxBy/lox7RugKRQMUS4J3f2vT9MHN3hvGyfkCAsDxZ/c8lMZIPqv3pUtc4G0S73oTOzslLbGxsZT01nprVg6ZPSYHdpl7/TOfd+71Fr5sd2PnZZH7qGFWkmbDzYuMoGXwML7TV7II84sB9qhq4F8zTNrGdSxsCx1Xcb1nq+pRest7tN3wuRkP6rwIub9jClea4XJb8jOZZ+q5eTT8eBmEkUJGsrMgn2Ynz3he3CbXFVJfoCLfuvxjtTrDNIaZEaQDnkP6iN+wMF2b1JEBOQI+hStNE7/PNQTe+12FL5vrW1r9ocGyeps92xBopohS3Pd0rcgfKKRhm3EHUI2/1WBXlPQLY5ImLLfNYhNKho8mGbuS1DbysQ="
-after_sucess:
-- codecov
\ No newline at end of file
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
+
diff --git a/thunder-clientgui/pom.xml b/thunder-clientgui/pom.xml
index 9a7608ec..73cfb7cd 100644
--- a/thunder-clientgui/pom.xml
+++ b/thunder-clientgui/pom.xml
@@ -60,7 +60,7 @@
org.bitcoinj
bitcoinj-core
- 0.13.1
+ 0.14.2
com.google.guava
diff --git a/thunder-clientgui/src/main/java/wallettemplate/ChannelInfoController.java b/thunder-clientgui/src/main/java/wallettemplate/ChannelInfoController.java
index 7772e6dc..63c0fe41 100644
--- a/thunder-clientgui/src/main/java/wallettemplate/ChannelInfoController.java
+++ b/thunder-clientgui/src/main/java/wallettemplate/ChannelInfoController.java
@@ -78,7 +78,7 @@ void initialize () throws SQLException {
balanceClient.setText(Coin.valueOf(channel.channelStatus.amountClient).toFriendlyString());
balanceServer.setText(Coin.valueOf(channel.channelStatus.amountServer).toFriendlyString());
- labelOpen.setText(new Date(((long) channel.getTimestampOpen()) * 1000).toString());
+ labelOpen.setText(new Date(((long) channel.timestampOpen) * 1000).toString());
txOpen.setText(Tools.bytesToHex(channel.anchorTx.bitcoinSerialize()));
diff --git a/thunder-clientgui/src/main/java/wallettemplate/Main.java b/thunder-clientgui/src/main/java/wallettemplate/Main.java
index 28877136..e6e2f75c 100644
--- a/thunder-clientgui/src/main/java/wallettemplate/Main.java
+++ b/thunder-clientgui/src/main/java/wallettemplate/Main.java
@@ -10,13 +10,13 @@
import network.thunder.core.ThunderContext;
import network.thunder.core.communication.ServerObject;
import network.thunder.core.database.DBHandler;
-import network.thunder.core.database.InMemoryDBHandler;
+import network.thunder.core.database.HibernateHandler;
import network.thunder.core.etc.Constants;
import network.thunder.core.helper.callback.results.NullResultCommand;
import network.thunder.core.helper.wallet.MockWallet;
import org.bitcoinj.core.*;
import org.bitcoinj.kits.WalletAppKit;
-import org.bitcoinj.script.Script;
+import org.bitcoinj.wallet.Wallet;
import wallettemplate.controls.NotificationBarPane;
import wallettemplate.utils.GuiUtils;
import wallettemplate.utils.TextFieldValidator;
@@ -25,7 +25,6 @@
import java.io.File;
import java.io.IOException;
import java.net.URL;
-import java.util.List;
import java.util.concurrent.TimeUnit;
import static wallettemplate.utils.GuiUtils.*;
@@ -42,7 +41,7 @@ public class Main extends Application {
public static Wallet wallet;
public static ThunderContext thunderContext;
- public static DBHandler dbHandler = new InMemoryDBHandler();
+ public static DBHandler dbHandler = new HibernateHandler();
public static ServerObject node = new ServerObject();
private StackPane uiStack;
@@ -84,46 +83,17 @@ private void realStart (Stage mainWindow) throws IOException {
wallet = walletAppKit.wallet();
wallet.allowSpendingUnconfirmedTransactions();
wallet.reset();
- wallet.addEventListener(new WalletEventListener() {
- @Override
- public void onCoinsReceived (Wallet wallet, Transaction tx, Coin prevBalance, Coin newBalance) {
- System.out.println("wallet = " + wallet);
- System.out.println("tx = " + tx);
- System.out.println("prevBalance = " + prevBalance);
- System.out.println("newBalance = " + newBalance);
- }
-
- @Override
- public void onCoinsSent (Wallet wallet, Transaction tx, Coin prevBalance, Coin newBalance) {
- System.out.println("wallet = " + wallet);
- System.out.println("tx = " + tx);
- System.out.println("prevBalance = " + prevBalance);
- System.out.println("newBalance = " + newBalance);
- }
-
- @Override
- public void onReorganize (Wallet wallet) {
-
- }
-
- @Override
- public void onTransactionConfidenceChanged (Wallet wallet, Transaction tx) {
-
- }
-
- @Override
- public void onWalletChanged (Wallet wallet) {
- }
-
- @Override
- public void onScriptsChanged (Wallet wallet, List