From 4599bd75a85e659936aeecf1c5e5bf65db6e25c7 Mon Sep 17 00:00:00 2001 From: Adam Gibson Date: Sun, 6 Jun 2021 11:57:15 +0100 Subject: [PATCH] Fix autofreeze warning on Qt --- scripts/joinmarket-qt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/joinmarket-qt.py b/scripts/joinmarket-qt.py index 6599812..ac2fce6 100755 --- a/scripts/joinmarket-qt.py +++ b/scripts/joinmarket-qt.py @@ -1854,12 +1854,14 @@ class JMMainWindow(QMainWindow): mn_extension = pp_field.text() return message_e.toPlainText(), mn_extension - def autofreeze_warning_cb(self, utxostr): + def autofreeze_warning_cb(self, utxo): """ Handles coins sent to reused addresses, preventing forced address reuse, according to value of POLICY setting `max_sats_freeze_reuse` (see WalletService.check_for_reuse()). """ + success, utxostr = utxo_to_utxostr(utxo) + assert success, "Autofreeze warning cb called with invalid utxo." msg = "New utxo has been automatically " +\ "frozen to prevent forced address reuse:\n" + utxostr +\ "\n You can unfreeze this utxo via the Coins tab."