tMerge pull request #4061 from Yuki-Inoue/feature/current_wallet_path - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 2886bf8a057e93cd7deeff484e9a12cbe18a0fb3
DIR parent 422dd953fdcaf0601bfce4c4cc7153744f6d43ad
HTML Author: ThomasV <thomasv@electrum.org>
Date: Tue, 27 Mar 2018 11:04:46 +0200
Merge pull request #4061 from Yuki-Inoue/feature/current_wallet_path
daemon status shows current wallet path
Diffstat:
M lib/daemon.py | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git a/lib/daemon.py b/lib/daemon.py
t@@ -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],
t@@ -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: