Browse Source

Merge pull request #608 from wozz/locktime

display locktime for transaction
283
ThomasV 11 years ago
parent
commit
3d1a917150
  1. 3
      gui/qt/transaction_dialog.py
  2. 1
      lib/transaction.py

3
gui/qt/transaction_dialog.py

@ -180,6 +180,9 @@ class TxDialog(QDialog):
def add_io(self, vbox):
if self.tx.locktime > 0:
vbox.addWidget(QLabel("LockTime: %d\n" % self.tx.locktime))
vbox.addWidget(QLabel(_("Inputs")))
lines = map(lambda x: x.get('prevout_hash') + ":%d"%x.get('prevout_n') + u'\t' + "%s"%x.get('address') , self.tx.inputs )
i_text = QTextEdit()

1
lib/transaction.py

@ -376,6 +376,7 @@ class Transaction:
self.inputs = self.d['inputs']
self.outputs = self.d['outputs']
self.outputs = map(lambda x: (x['address'],x['value']), self.outputs)
self.locktime = self.d['lockTime']
self.is_complete = is_complete
def __str__(self):

Loading…
Cancel
Save