mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 11:28:14 +00:00
Merge pull request #395 from ph4r05/xmr-ki-progress
xmr: key image sync progress info
This commit is contained in:
commit
76dbef99bf
@ -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:
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user