cleanup on error handling when a transaction is cancelled
This commit is contained in:
@@ -238,9 +238,10 @@ class Plugin(BasePlugin):
|
|||||||
try:
|
try:
|
||||||
signed_tx = client.sign_tx('Bitcoin', inputs, outputs)[1]
|
signed_tx = client.sign_tx('Bitcoin', inputs, outputs)[1]
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
give_error(e)
|
|
||||||
finally:
|
|
||||||
self.handler.stop()
|
self.handler.stop()
|
||||||
|
give_error(e)
|
||||||
|
|
||||||
|
self.handler.stop()
|
||||||
|
|
||||||
raw = signed_tx.encode('hex')
|
raw = signed_tx.encode('hex')
|
||||||
tx.update_signatures(raw)
|
tx.update_signatures(raw)
|
||||||
|
|||||||
Reference in New Issue
Block a user