1
0

Remove need for coin chooser to take a wallet

This commit is contained in:
Neil Booth
2015-11-28 22:12:20 +09:00
parent a6ea9a0c71
commit 8785b65a1f
2 changed files with 4 additions and 4 deletions

View File

@@ -153,7 +153,7 @@ class Abstract_Wallet(PrintError):
self.network = None
self.electrum_version = ELECTRUM_VERSION
self.gap_limit_for_change = 6 # constant
self.coin_chooser = CoinChooser(self)
self.coin_chooser = CoinChooser()
# saved fields
self.seed_version = storage.get('seed_version', NEW_SEED_VERSION)
self.use_change = storage.get('use_change',True)
@@ -905,6 +905,9 @@ class Abstract_Wallet(PrintError):
if type == 'address':
assert is_address(data), "Address " + data + " is invalid!"
for item in coins:
self.add_input_info(item)
# change address
if change_addr:
change_addrs = [change_addr]