This commit is contained in:
Peter D. Gray 2025-09-11 10:45:37 -04:00
parent 4db1b10ee0
commit 4320ffc599
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C
2 changed files with 7 additions and 5 deletions

View File

@ -105,14 +105,16 @@ def qr_and_ms():
if not version.has_qr: return False
return bool(settings.get('multisig', False))
def has_pushtx_url():
# they want to use PushTX feature
return bool(settings.get("ptxurl", False))
# Spending Policy (Hobbled mode) predicates.
#
def is_hobble_testdrive():
from pincodes import pa
return (pa.hobbled_mode == 2)
def has_pushtx_url():
return bool(settings.get("ptxurl", False))
# SSSP
def sssp_related_keys():
return sssp_spending_policy('okeys')

View File

@ -41,7 +41,7 @@ _PREFIX_MARKER = const(1<<26)
VaultEntry = namedtuple('VaultEntry', 'xfp encoded label origin')
def not_hobbled_mode():
from pincodes import pa
# used as menu predicate and similar
return not pa.hobbled_mode
def seed_vault_iter():