mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
fix export to specter desktop without any wallet history
This commit is contained in:
parent
50aa9b4dcb
commit
0745d21761
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ public class SpecterDesktop implements WalletImport, WalletExport {
|
||||||
try {
|
try {
|
||||||
SpecterWallet specterWallet = new SpecterWallet();
|
SpecterWallet specterWallet = new SpecterWallet();
|
||||||
specterWallet.label = wallet.getFullName();
|
specterWallet.label = wallet.getFullName();
|
||||||
specterWallet.blockheight = wallet.getTransactions().values().stream().mapToInt(BlockTransactionHash::getHeight).min().orElse(wallet.getStoredBlockHeight());
|
specterWallet.blockheight = wallet.getTransactions().values().stream().mapToInt(BlockTransactionHash::getHeight).min().orElse(wallet.getStoredBlockHeight() == null ? 0 : wallet.getStoredBlockHeight());
|
||||||
specterWallet.descriptor = OutputDescriptor.getOutputDescriptor(wallet).toString(true);
|
specterWallet.descriptor = OutputDescriptor.getOutputDescriptor(wallet).toString(true);
|
||||||
|
|
||||||
Gson gson = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create();
|
Gson gson = new GsonBuilder().setPrettyPrinting().disableHtmlEscaping().create();
|
||||||
|
|
Loading…
Reference in a new issue