Browse Source
Merge pull request #4061 from Yuki-Inoue/feature/current_wallet_path
daemon status shows current wallet path
3.2.x
ThomasV
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
lib/daemon.py
|
|
@ -186,6 +186,9 @@ class Daemon(DaemonThread): |
|
|
|
elif sub == 'status': |
|
|
|
if self.network: |
|
|
|
p = self.network.get_parameters() |
|
|
|
current_wallet = self.cmd_runner.wallet |
|
|
|
current_wallet_path = current_wallet.storage.path \ |
|
|
|
if current_wallet else None |
|
|
|
response = { |
|
|
|
'path': self.network.config.path, |
|
|
|
'server': p[0], |
|
|
@ -197,6 +200,7 @@ class Daemon(DaemonThread): |
|
|
|
'version': ELECTRUM_VERSION, |
|
|
|
'wallets': {k: w.is_up_to_date() |
|
|
|
for k, w in self.wallets.items()}, |
|
|
|
'current_wallet': current_wallet_path, |
|
|
|
'fee_per_kb': self.config.fee_per_kb(), |
|
|
|
} |
|
|
|
else: |
|
|
|