|
|
|
|
@ -1068,17 +1068,6 @@ class Abstract_Wallet(AddressSynchronizer):
|
|
|
|
|
index = self.get_address_index(addr) |
|
|
|
|
return self.keystore.decrypt_message(index, message, password) |
|
|
|
|
|
|
|
|
|
def get_depending_transactions(self, tx_hash): |
|
|
|
|
"""Returns all (grand-)children of tx_hash in this wallet.""" |
|
|
|
|
children = set() |
|
|
|
|
# TODO rewrite this to use self.spent_outpoints |
|
|
|
|
for other_hash, tx in self.transactions.items(): |
|
|
|
|
for input in (tx.inputs()): |
|
|
|
|
if input["prevout_hash"] == tx_hash: |
|
|
|
|
children.add(other_hash) |
|
|
|
|
children |= self.get_depending_transactions(other_hash) |
|
|
|
|
return children |
|
|
|
|
|
|
|
|
|
def txin_value(self, txin): |
|
|
|
|
txid = txin['prevout_hash'] |
|
|
|
|
prev_n = txin['prevout_n'] |
|
|
|
|
|