mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 08:37:05 +00:00
terminal - create watch only wallet
This commit is contained in:
@@ -1634,6 +1634,10 @@ public class ElectrumServer {
|
||||
}
|
||||
|
||||
private List<StandardAccount> getStandardAccounts(Wallet wallet) {
|
||||
if(!wallet.getKeystores().stream().allMatch(Keystore::hasMasterPrivateKey)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
List<StandardAccount> accounts = new ArrayList<>();
|
||||
for(StandardAccount account : StandardAccount.values()) {
|
||||
if(account != StandardAccount.ACCOUNT_0 && (!StandardAccount.WHIRLPOOL_ACCOUNTS.contains(account) || wallet.getScriptType() == ScriptType.P2WPKH)) {
|
||||
|
||||
Reference in New Issue
Block a user