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

xmr: key image sync progress info
pull/25/head
Tomas Susanka 6 years ago committed by GitHub
commit 76dbef99bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save