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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user