Browse Source

wallet: (trivial) simplify class hierarchy

legacy cruft
master
SomberNight 2 years ago
parent
commit
c84e55e957
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 12
      electrum/wallet.py

12
electrum/wallet.py

@ -3735,9 +3735,9 @@ class Deterministic_Wallet(Abstract_Wallet):
return self.txin_type
class Simple_Deterministic_Wallet(Simple_Wallet, Deterministic_Wallet):
class Standard_Wallet(Simple_Wallet, Deterministic_Wallet):
""" Deterministic Wallet with a single pubkey per address """
wallet_type = 'standard'
def __init__(self, db, *, config):
Deterministic_Wallet.__init__(self, db, config=config)
@ -3761,14 +3761,6 @@ class Simple_Deterministic_Wallet(Simple_Wallet, Deterministic_Wallet):
def derive_pubkeys(self, c, i):
return [self.keystore.derive_pubkey(c, i).hex()]
class Standard_Wallet(Simple_Deterministic_Wallet):
wallet_type = 'standard'
def pubkeys_to_address(self, pubkeys):
pubkey = pubkeys[0]
return bitcoin.pubkey_to_address(self.txin_type, pubkey)

Loading…
Cancel
Save