Browse Source

display locktime for transaction

display locktime for transactions if it is greater than 0.  Majority of
transactions will not display any value because default is 0.
283
Michael Wozniak 11 years ago
parent
commit
f5fb6ed194
  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