mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +00:00
avoid saving address data where master wallet has a passphrase
This commit is contained in:
parent
ca833fbf68
commit
ddaf698c10
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue