1
0

fix command line interface for hardware wallets. fixes #3056

This commit is contained in:
ThomasV
2017-10-19 11:59:36 +02:00
parent 3c281c4056
commit 24442de8df
8 changed files with 71 additions and 76 deletions

View File

@@ -1,17 +1,11 @@
from electrum.util import print_msg
from .digitalbitbox import DigitalBitboxPlugin
class DigitalBitboxCmdLineHandler:
def stop(self):
pass
def show_message(self, msg):
print_msg(msg)
def get_passphrase(self, msg, confirm):
import getpass
print_msg(msg)
return getpass.getpass('')
from ..hw_wallet import CmdLineHandler
class Plugin(DigitalBitboxPlugin):
handler = DigitalBitboxCmdLineHandler()
handler = CmdLineHandler()
@hook
def init_keystore(self, keystore):
if not isinstance(keystore, self.keystore_class):
return
keystore.handler = self.handler