1
0

Merge pull request #3762 from SomberNight/txin_type_address_segwit

change partial txn serialization format for imported addresses txins
This commit is contained in:
ThomasV
2018-06-22 13:58:15 +02:00
committed by GitHub
5 changed files with 272 additions and 35 deletions

View File

@@ -72,7 +72,7 @@ class TxDialog(QDialog, MessageBoxMixin):
# Take a copy; it might get updated in the main window by
# e.g. the FX plugin. If this happens during or after a long
# sign operation the signatures are lost.
self.tx = copy.deepcopy(tx)
self.tx = tx = copy.deepcopy(tx)
try:
self.tx.deserialize()
except BaseException as e:
@@ -83,6 +83,11 @@ class TxDialog(QDialog, MessageBoxMixin):
self.saved = False
self.desc = desc
# if the wallet can populate the inputs with more info, do it now.
# as a result, e.g. we might learn an imported address tx is segwit,
# in which case it's ok to display txid
self.wallet.add_input_info_to_all_inputs(tx)
self.setMinimumWidth(950)
self.setWindowTitle(_("Transaction"))