1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +00:00

xmr: key image sync progress

This commit is contained in:
Dusan Klinec 2018-11-02 14:41:19 +01:00
parent d919e99255
commit 3020b5d4a9
No known key found for this signature in database
GPG Key ID: 6337E118CCBCE103
2 changed files with 11 additions and 0 deletions

View File

@ -70,6 +70,8 @@ async def _sync_step(s, ctx, tds):
buff = bytearray(32 * 3)
buff_mv = memoryview(buff)
await confirms.keyimage_sync_step(ctx, s.current_output, s.num_outputs)
for td in tds.tdis:
s.current_output += 1
if s.current_output >= s.num_outputs:

View File

@ -123,3 +123,12 @@ async def transaction_step(ctx, step, sub_step=None, sub_step_total=None):
text = Text("Signing transaction", ui.ICON_SEND, icon_color=ui.BLUE)
text.normal(*info)
text.render()
@ui.layout
async def keyimage_sync_step(ctx, current, total_num):
if current is None:
return
text = Text("Syncing", ui.ICON_SEND, icon_color=ui.BLUE)
text.normal("%d/%d" % (current + 1, total_num))
text.render()