mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
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.
This commit is contained in:
parent
e55f27cdd7
commit
f5fb6ed194
2 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue