avoid saving address data where master wallet has a passphrase

This commit is contained in:
Craig Raw 2022-08-01 14:16:20 +02:00
parent ca833fbf68
commit ddaf698c10

View file

@ -272,7 +272,8 @@ public class WalletNode extends Persistable implements Comparable<WalletNode> {
return address; return address;
} }
if(wallet.getKeystores().stream().noneMatch(Keystore::needsPassphrase)) { Wallet masterWallet = wallet.isMasterWallet() ? wallet : wallet.getMasterWallet();
if(masterWallet.getKeystores().stream().noneMatch(Keystore::needsPassphrase)) {
address = wallet.getAddress(this); address = wallet.getAddress(this);
return address; return address;
} }