Skip to content
Browse files
core/monero: add confirmation dialog for unlock_time
  • Loading branch information
prusnak committed Feb 19, 2020
1 parent a808cc9 commit 7944c1a837cb8b7c398be0ab6361d229ac591eab
Showing 1 changed file with 11 additions and 0 deletions.
@@ -54,6 +54,9 @@ async def require_confirm_transaction(ctx, state, tsx_data, network_type):
has_integrated = bool(tsx_data.integrated_indices)
has_payment = bool(tsx_data.payment_id)

if tsx_data.unlock_time != 0:
await _require_confirm_unlock_time(ctx, tsx_data.unlock_time)

for idx, dst in enumerate(outputs):
is_change = change_idx is not None and idx == change_idx
if is_change:
@@ -117,6 +120,14 @@ async def _require_confirm_fee(ctx, fee):
await require_hold_to_confirm(ctx, content, ButtonRequestType.ConfirmOutput)

async def _require_confirm_unlock_time(ctx, unlock_time):
content = Text("Confirm unlock time", ui.ICON_SEND, ui.GREEN)
content.normal("Unlock time for this transaction is set to")
await require_confirm(ctx, content, ButtonRequestType.SignTx)

class TransactionStep(ui.Component):
def __init__(self, state, info):
self.state = state

0 comments on commit 7944c1a

Please sign in to comment.