bugfix: qr_psbt_sign NFC yikes

This commit is contained in:
scgbckbone 2024-02-15 15:09:04 +01:00 committed by doc-hex
parent 91e536efb4
commit cfb8ebe66b
2 changed files with 5 additions and 3 deletions

View File

@ -961,11 +961,13 @@ async def qr_psbt_sign(decoder, psbt_len, raw):
if data_len < MAX_V40_SIZE:
# and can fit into single QR hex-encoded QR
await show_qr_code(here, is_alnum=True, msg=(txid or 'Partly Signed PSBT'))
await show_qr_code(here.decode(), is_alnum=True,
msg=(txid or 'Partly Signed PSBT'))
else:
# too big for single version 40 QR - do BBQr animated QR
await show_bbqr_codes('T' if txid else 'P', here,
(txid or 'Partly Signed PSBT'), already_hex=True)
(txid or 'Partly Signed PSBT'),
already_hex=True)
UserAuthorizedAction.cleanup()
UserAuthorizedAction.active_request = ApproveTransaction(psbt_len, approved_cb=done)

View File

@ -2598,7 +2598,7 @@ def test_mixed_locktimes(num_rtl, use_regtest, bitcoind_d_sim_watch, start_sign,
psbt_resp = sim.walletcreatefundedpsbt(ins, [{dest_addr: (num_ins - 0.1)}], locktime, {"fee_rate": 20})
psbt = psbt_resp.get("psbt")
psbt_fname = "rtl-mixin-time.psbt"
psbt_fname = "mixed-locktimes.psbt"
with open(microsd_path(psbt_fname), "w") as f:
f.write(psbt)
goto_home()