fix naming when using a subtab wallet, import and export wallets with child wallets with db persistence on sparrow exporter

This commit is contained in:
Craig Raw
2021-07-30 14:17:21 +02:00
parent 02d3817cb1
commit 55e69bf263
22 changed files with 104 additions and 39 deletions
@@ -21,7 +21,7 @@ public class SpecterDesktop implements WalletImport, WalletExport {
public void exportWallet(Wallet wallet, OutputStream outputStream) throws ExportException {
try {
SpecterWallet specterWallet = new SpecterWallet();
specterWallet.label = wallet.getName();
specterWallet.label = wallet.getFullName();
specterWallet.blockheight = wallet.getTransactions().values().stream().mapToInt(BlockTransactionHash::getHeight).min().orElse(wallet.getStoredBlockHeight());
specterWallet.descriptor = OutputDescriptor.getOutputDescriptor(wallet).toString(true);