From e65f1ef3cc4470d77f0009cab30548d247acfa92 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 8 Sep 2020 12:42:15 +0200 Subject: [PATCH] export specter with checksum --- drongo | 2 +- src/main/java/com/sparrowwallet/sparrow/io/Specter.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drongo b/drongo index 794cde72..08c159eb 160000 --- a/drongo +++ b/drongo @@ -1 +1 @@ -Subproject commit 794cde72509650c3659a4250c223d3ae4a82d9d6 +Subproject commit 08c159ebadee78af391e83d91b6a453a28acbf3e diff --git a/src/main/java/com/sparrowwallet/sparrow/io/Specter.java b/src/main/java/com/sparrowwallet/sparrow/io/Specter.java index 0fc71858..98890bc8 100644 --- a/src/main/java/com/sparrowwallet/sparrow/io/Specter.java +++ b/src/main/java/com/sparrowwallet/sparrow/io/Specter.java @@ -19,7 +19,7 @@ public class Specter implements WalletImport, WalletExport { SpecterWallet specterWallet = new SpecterWallet(); specterWallet.label = wallet.getName(); specterWallet.blockheight = wallet.getStoredBlockHeight(); - specterWallet.descriptor = OutputDescriptor.getOutputDescriptor(wallet).toString(); + specterWallet.descriptor = OutputDescriptor.getOutputDescriptor(wallet).toString(true); Gson gson = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create(); String json = gson.toJson(specterWallet); @@ -67,7 +67,7 @@ public class Specter implements WalletImport, WalletExport { throw new ImportException(e); } - throw new ImportException("Could not import Specter wallet"); + throw new ImportException("File was not a valid Specter wallet"); } @Override