1
0

Raise exception if transaction is not related to wallet

This commit is contained in:
Johann Bauer
2018-01-28 22:56:33 +01:00
parent e184ac888f
commit 8676e870f3
3 changed files with 20 additions and 4 deletions

View File

@@ -632,7 +632,6 @@ class Commands:
@command('w')
def addtransaction(self, tx):
""" Add a transaction to the wallet history """
#fixme: we should ensure that tx is related to wallet
tx = Transaction(tx)
self.wallet.add_transaction(tx.txid(), tx)
self.wallet.save_transactions()