transaction: introduce TxOutput namedtuple
This commit is contained in:
@@ -534,9 +534,9 @@ class DigitalBitbox_KeyStore(Hardware_KeyStore):
|
||||
self.give_error("No matching x_key for sign_transaction") # should never happen
|
||||
|
||||
# Build pubkeyarray from outputs
|
||||
for _type, address, amount in tx.outputs():
|
||||
assert _type == TYPE_ADDRESS
|
||||
info = tx.output_info.get(address)
|
||||
for o in tx.outputs():
|
||||
assert o.type == TYPE_ADDRESS
|
||||
info = tx.output_info.get(o.address)
|
||||
if info is not None:
|
||||
index, xpubs, m = info
|
||||
changePath = self.get_derivation() + "/%d/%d" % index
|
||||
|
||||
Reference in New Issue
Block a user