Skip to content

Commit

Permalink
xmr: sing_tx unimport
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Sep 13, 2018
1 parent 61ac61b commit 44e3834
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/apps/monero/sign_tx.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import gc

from trezor import wire
from trezor import wire, utils
from trezor.messages import MessageType


Expand Down Expand Up @@ -29,6 +29,8 @@ async def sign_tx_step(ctx, msg, state):
state = None
else:
creds = None

mods = utils.unimport_begin()
tsx = TTransactionBuilder(iface.get_iface(ctx), creds, state)
del creds
del state
Expand All @@ -41,6 +43,9 @@ async def sign_tx_step(ctx, msg, state):
state = None
else:
state = tsx.state_save()

gc.collect()
utils.unimport_end(mods)
return res, state


Expand Down

0 comments on commit 44e3834

Please sign in to comment.