1
0

qt tx dialog: show_qr to warn if QR code is missing data

When exporting a tx as qr code, the prev txs are omitted to save space.
This causes problems with offline signers: software electrum signers will
just warn and then proceed, but hw devices will typically error.
This commit is contained in:
SomberNight
2023-03-30 14:32:31 +00:00
parent 4647fda04f
commit 0a3e286f1d
6 changed files with 25 additions and 12 deletions

View File

@@ -733,6 +733,6 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
def getSerializedTx(self, txid, for_qr=False):
tx = self.wallet.db.get_transaction(txid)
if for_qr:
return tx.to_qr_data()
return tx.to_qr_data()[0]
else:
return str(tx)