From ab41f2e80e9d4fdb43cac6b4fedd49a3b02977d6 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 11 Jun 2021 15:45:16 +0200 Subject: [PATCH] upgrade to h2 HEAD --- build.gradle | 4 ++-- src/main/java/com/sparrowwallet/sparrow/io/Hwi.java | 2 +- .../sparrow/io/db/BlockTransactionHashIndexMapper.java | 2 +- .../java/com/sparrowwallet/sparrow/io/db/DbPersistence.java | 5 ++++- .../java/com/sparrowwallet/sparrow/io/db/WalletNodeDao.java | 6 +++--- .../resources/com/sparrowwallet/sparrow/sql/V1__Initial.sql | 4 ++-- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 2c00d46d..dd43bf1e 100644 --- a/build.gradle +++ b/build.gradle @@ -44,13 +44,13 @@ dependencies { } implementation('com.google.guava:guava:28.2-jre') implementation('com.google.code.gson:gson:2.8.6') - implementation('com.h2database:h2:1.4.200') + implementation('com.h2database:h2:1.4.201-SNAPSHOT') implementation('com.zaxxer:HikariCP:4.0.3') implementation('org.jdbi:jdbi3-core:3.20.0') { exclude group: 'org.slf4j' } implementation('org.jdbi:jdbi3-sqlobject:3.20.0') - implementation('org.flywaydb:flyway-core:7.9.1') + implementation('org.flywaydb:flyway-core:7.10.1-SNAPSHOT') implementation('org.fxmisc.richtext:richtextfx:0.10.4') implementation('no.tornado:tornadofx-controls:1.0.4') implementation('com.google.zxing:javase:3.4.0') diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java b/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java index 02c57bac..52a538e8 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Hwi.java @@ -321,7 +321,7 @@ public class Hwi { private File getHwiHomeDir() { if(Platform.getCurrent() == Platform.OSX) { - return new File(Storage.getSparrowHome(), HWI_HOME_DIR); + return new File(Storage.getSparrowDir(), HWI_HOME_DIR); } return new File(System.getProperty("java.io.tmpdir")); diff --git a/src/main/java/com/sparrowwallet/sparrow/io/db/BlockTransactionHashIndexMapper.java b/src/main/java/com/sparrowwallet/sparrow/io/db/BlockTransactionHashIndexMapper.java index f3dae477..74dd11d4 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/db/BlockTransactionHashIndexMapper.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/db/BlockTransactionHashIndexMapper.java @@ -14,7 +14,7 @@ public class BlockTransactionHashIndexMapper implements RowMapper