bugfix: qr_psbt_sign NFC yikes
This commit is contained in:
parent
91e536efb4
commit
cfb8ebe66b
@ -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)
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user