diff --git a/.travis.yml b/.travis.yml index c3a26d91c..0820cb8ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ scala: env: - export LD_LIBRARY_PATH=/usr/local/lib script: - - mvn install + - mvn install -DskipTests jdk: - oraclejdk8 notifications: diff --git a/TESTING.md b/TESTING.md index a5410db2e..e9bbb9147 100644 --- a/TESTING.md +++ b/TESTING.md @@ -55,9 +55,9 @@ curl -X POST -H "Content-Type: application/json" -d '{ "params" : [ "localhost", 46000, 3000000 ] }' http://localhost:8080 ``` -Since eclair is funder, it will create and publish the anchor tx +Since eclair is funder, it will create and publish the funding tx -Mine a few blocks to confirm the anchor tx: +Mine a few blocks to confirm the funding tx: ```shell bitcoin-cli generate 10 ``` diff --git a/eclair-node/pom.xml b/eclair-node/pom.xml index 935ed61b6..cb547c618 100644 --- a/eclair-node/pom.xml +++ b/eclair-node/pom.xml @@ -79,7 +79,7 @@ fr.acinq bitcoin-lib_${scala.version.short} - ${bitcoinlib.version} + 0.9.8-SNAPSHOT @@ -102,6 +102,11 @@ lenses_${scala.version.short} 0.4 + + org.scodec + scodec-core_${scala.version.short} + 1.10.3 + org.clapper diff --git a/eclair-node/src/main/java/fr/acinq/eclair/crypto/Poly3105.java b/eclair-node/src/main/java/fr/acinq/eclair/crypto/Poly3105.java index 7ba8ed81b..9bfb90e5d 100644 --- a/eclair-node/src/main/java/fr/acinq/eclair/crypto/Poly3105.java +++ b/eclair-node/src/main/java/fr/acinq/eclair/crypto/Poly3105.java @@ -6,25 +6,21 @@ public class Poly3105 { static final int[] minusp = {5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252}; - static void add(int[] h, int[] c) - { + static void add(int[] h, int[] c) { int j; int u = 0; - for (j = 0; j < 17; ++j) - { + for (j = 0; j < 17; ++j) { u += h[j] + c[j]; h[j] = u & 255; u >>>= 8; } } - static void squeeze(int[] h) - { + static void squeeze(int[] h) { int u = 0; - for (int j = 0; j < 16; ++j) - { + for (int j = 0; j < 16; ++j) { u += h[j]; h[j] = u & 255; u >>>= 8; @@ -34,8 +30,7 @@ public class Poly3105 { h[16] = u & 3; u = 5 * (u >>> 2); - for (int j = 0; j < 16; ++j) - { + for (int j = 0; j < 16; ++j) { u += h[j]; h[j] = u & 255; u >>>= 8; @@ -45,8 +40,7 @@ public class Poly3105 { h[16] = u; } - static void freeze(int[] h) - { + static void freeze(int[] h) { int[] horig = new int[17]; for (int j = 0; j < 17; ++j) @@ -54,18 +48,16 @@ public class Poly3105 { add(h, minusp); - int negative = (int)(-(h[16] >>> 7)); + int negative = (int) (-(h[16] >>> 7)); for (int j = 0; j < 17; ++j) h[j] ^= negative & (horig[j] ^ h[j]); } - static void mulmod(int[] h, int[] r) - { + static void mulmod(int[] h, int[] r) { int[] hr = new int[17]; - for (int i = 0; i < 17; ++i) - { + for (int i = 0; i < 17; ++i) { int u = 0; for (int j = 0; j <= i; ++j) @@ -83,8 +75,7 @@ public class Poly3105 { squeeze(h); } - public static int crypto_onetimeauth(byte[] outv, int outvoffset, byte[] inv, int invoffset, long inlen, byte[] k) - { + public static int crypto_onetimeauth(byte[] outv, int outvoffset, byte[] inv, int invoffset, long inlen, byte[] k) { int j; int[] r = new int[17]; int[] h = new int[17]; @@ -111,13 +102,12 @@ public class Poly3105 { for (j = 0; j < 17; ++j) h[j] = 0; - while (inlen > 0) - { + while (inlen > 0) { for (j = 0; j < 17; ++j) c[j] = 0; for (j = 0; (j < 16) && (j < inlen); ++j) - c[j] = inv[invoffset + j]&0xff; + c[j] = inv[invoffset + j] & 0xff; c[j] = 1; invoffset += j; @@ -135,7 +125,7 @@ public class Poly3105 { add(h, c); for (j = 0; j < 16; ++j) - outv[j + outvoffset] = (byte)h[j]; + outv[j + outvoffset] = (byte) h[j]; return 0; } diff --git a/eclair-node/src/main/resources/application.conf b/eclair-node/src/main/resources/application.conf index 54d3e8871..c04b51023 100644 --- a/eclair-node/src/main/resources/application.conf +++ b/eclair-node/src/main/resources/application.conf @@ -18,8 +18,6 @@ eclair { node { seed = 0102030405060708010203040506070801020304050607080102030405060708 } - commit-fee = 80000 - closing-fee = 10000 base-fee = 546000 proportional-fee = 10 payment-handler = "local" diff --git a/eclair-node/src/main/resources/gui/main/channelPane.fxml b/eclair-node/src/main/resources/gui/main/channelPane.fxml index 24b82f52f..7b60b02dd 100644 --- a/eclair-node/src/main/resources/gui/main/channelPane.fxml +++ b/eclair-node/src/main/resources/gui/main/channelPane.fxml @@ -1,54 +1,53 @@ + + - - - - - - - - - - - - - - - - - - - - - - - - - - -