Browse Source

export specter with checksum

bwt
Craig Raw 4 years ago
parent
commit
e65f1ef3cc
  1. 2
      drongo
  2. 4
      src/main/java/com/sparrowwallet/sparrow/io/Specter.java

2
drongo

@ -1 +1 @@
Subproject commit 794cde72509650c3659a4250c223d3ae4a82d9d6 Subproject commit 08c159ebadee78af391e83d91b6a453a28acbf3e

4
src/main/java/com/sparrowwallet/sparrow/io/Specter.java

@ -19,7 +19,7 @@ public class Specter implements WalletImport, WalletExport {
SpecterWallet specterWallet = new SpecterWallet(); SpecterWallet specterWallet = new SpecterWallet();
specterWallet.label = wallet.getName(); specterWallet.label = wallet.getName();
specterWallet.blockheight = wallet.getStoredBlockHeight(); specterWallet.blockheight = wallet.getStoredBlockHeight();
specterWallet.descriptor = OutputDescriptor.getOutputDescriptor(wallet).toString(); specterWallet.descriptor = OutputDescriptor.getOutputDescriptor(wallet).toString(true);
Gson gson = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create(); Gson gson = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create();
String json = gson.toJson(specterWallet); String json = gson.toJson(specterWallet);
@ -67,7 +67,7 @@ public class Specter implements WalletImport, WalletExport {
throw new ImportException(e); throw new ImportException(e);
} }
throw new ImportException("Could not import Specter wallet"); throw new ImportException("File was not a valid Specter wallet");
} }
@Override @Override

Loading…
Cancel
Save