clean up sending address input
in particular fee calculation was off for send-from
This commit is contained in:
@@ -1138,12 +1138,6 @@ class Wallet:
|
||||
return [x[1] for x in coins]
|
||||
|
||||
|
||||
|
||||
def choose_tx_inputs_from_account( self, amount, fixed_fee, account ):
|
||||
domain = self.get_account_addresses(account) if account else None
|
||||
return self.choose_tx_inputs( amount, fixed_fee, domain )
|
||||
|
||||
|
||||
def choose_tx_inputs( self, amount, fixed_fee, domain = None ):
|
||||
""" todo: minimize tx size """
|
||||
total = 0
|
||||
@@ -1357,17 +1351,6 @@ class Wallet:
|
||||
return Transaction.from_io(inputs, outputs)
|
||||
|
||||
|
||||
def mktx_from_account(self, outputs, password, fee=None, account=None,
|
||||
pay_from=None):
|
||||
if pay_from:
|
||||
domain = pay_from
|
||||
elif account:
|
||||
domain = self.get_account_addresses(account)
|
||||
else:
|
||||
domain = None
|
||||
return self.mktx(outputs, password, fee, change_addr=None, domain=domain)
|
||||
|
||||
|
||||
def mktx(self, outputs, password, fee=None, change_addr=None, domain= None ):
|
||||
tx = self.make_unsigned_transaction(outputs, fee, change_addr, domain)
|
||||
keypairs = {}
|
||||
|
||||
Reference in New Issue
Block a user