1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 03:18:09 +00:00

Merge pull request #395 from ph4r05/xmr-ki-progress

xmr: key image sync progress info
This commit is contained in:
Tomas Susanka 2018-11-02 15:47:43 +01:00 committed by GitHub
commit 76dbef99bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = bytearray(32 * 3)
buff_mv = memoryview(buff) buff_mv = memoryview(buff)
await confirms.keyimage_sync_step(ctx, s.current_output, s.num_outputs)
for td in tds.tdis: for td in tds.tdis:
s.current_output += 1 s.current_output += 1
if s.current_output >= s.num_outputs: 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 = Text("Signing transaction", ui.ICON_SEND, icon_color=ui.BLUE)
text.normal(*info) text.normal(*info)
text.render() 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()