Merge pull request #608 from wozz/locktime

display locktime for transaction
This commit is contained in:
ThomasV 2014-03-06 09:44:24 +01:00
commit 3d1a917150
2 changed files with 4 additions and 0 deletions

View File

@ -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()

View File

@ -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):