|
@@ -177,16 +177,16 @@ class TwUnspentOutputs(TwView):
|
|
for n, d in enumerate(data):
|
|
for n, d in enumerate(data):
|
|
yield fs.format(
|
|
yield fs.format(
|
|
n = str(n+1) + ')',
|
|
n = str(n+1) + ')',
|
|
- t = (d.txid.fmtc('|' + '.'*(cw.txid-1), width=cw.txid, color=color) if d.skip == 'txid'
|
|
|
|
- else d.txid.truncate(width=cw.txid, color=color)) if cw.txid else None,
|
|
|
|
- v = ' ' + d.vout.fmt(width=cw.vout-1, color=color) if cw.vout else None,
|
|
|
|
- a = d.addr.fmtc('|' + '.'*(cw.addr-1), width=cw.addr, color=color) if d.skip == 'addr'
|
|
|
|
- else d.addr.fmt(self.addr_view_pref, width=cw.addr, color=color),
|
|
|
|
- m = (d.twmmid.fmtc('.'*cw.mmid, width=cw.mmid, color=color) if d.skip == 'addr'
|
|
|
|
- else d.twmmid.fmt(width=cw.mmid, color=color)) if cw.mmid else None,
|
|
|
|
- c = d.comment.fmt2(width=cw.comment, color=color, nullrepl='-') if cw.comment else None,
|
|
|
|
- A = d.amt.fmt(color=color, iwidth=cw.iwidth, prec=self.disp_prec),
|
|
|
|
- B = d.amt2.fmt(color=color, iwidth=cw.iwidth2, prec=self.disp_prec) if cw.amt2 else None,
|
|
|
|
|
|
+ t = (d.txid.fmtc('|' + '.'*(cw.txid-1), cw.txid, color=color) if d.skip == 'txid'
|
|
|
|
+ else d.txid.truncate(cw.txid, color=color)) if cw.txid else None,
|
|
|
|
+ v = ' ' + d.vout.fmt(cw.vout-1, color=color) if cw.vout else None,
|
|
|
|
+ a = d.addr.fmtc('|' + '.'*(cw.addr-1), cw.addr, color=color) if d.skip == 'addr'
|
|
|
|
+ else d.addr.fmt(self.addr_view_pref, cw.addr, color=color),
|
|
|
|
+ m = (d.twmmid.fmtc('.'*cw.mmid, cw.mmid, color=color) if d.skip == 'addr'
|
|
|
|
+ else d.twmmid.fmt(cw.mmid, color=color)) if cw.mmid else None,
|
|
|
|
+ c = d.comment.fmt2(cw.comment, color=color, nullrepl='-') if cw.comment else None,
|
|
|
|
+ A = d.amt.fmt(cw.iwidth, color=color, prec=self.disp_prec),
|
|
|
|
+ B = d.amt2.fmt(cw.iwidth2, color=color, prec=self.disp_prec) if cw.amt2 else None,
|
|
d = self.age_disp(d, self.age_fmt),
|
|
d = self.age_disp(d, self.age_fmt),
|
|
)
|
|
)
|
|
|
|
|
|
@@ -195,15 +195,15 @@ class TwUnspentOutputs(TwView):
|
|
for n, d in enumerate(data):
|
|
for n, d in enumerate(data):
|
|
yield fs.format(
|
|
yield fs.format(
|
|
n = str(n+1) + ')',
|
|
n = str(n+1) + ')',
|
|
- t = d.txid.fmt(width=cw.txid, color=color) if cw.txid else None,
|
|
|
|
- v = ' ' + d.vout.fmt(width=cw.vout-1, color=color) if cw.vout else None,
|
|
|
|
- a = d.addr.fmt(self.addr_view_pref, width=cw.addr, color=color),
|
|
|
|
- m = d.twmmid.fmt(width=cw.mmid, color=color),
|
|
|
|
- A = d.amt.fmt(color=color, iwidth=cw.iwidth, prec=self.disp_prec),
|
|
|
|
- B = d.amt2.fmt(color=color, iwidth=cw.iwidth2, prec=self.disp_prec) if cw.amt2 else None,
|
|
|
|
|
|
+ t = d.txid.fmt(cw.txid, color=color) if cw.txid else None,
|
|
|
|
+ v = ' ' + d.vout.fmt(cw.vout-1, color=color) if cw.vout else None,
|
|
|
|
+ a = d.addr.fmt(self.addr_view_pref, cw.addr, color=color),
|
|
|
|
+ m = d.twmmid.fmt(cw.mmid, color=color),
|
|
|
|
+ A = d.amt.fmt(cw.iwidth, color=color, prec=self.disp_prec),
|
|
|
|
+ B = d.amt2.fmt(cw.iwidth2, color=color, prec=self.disp_prec) if cw.amt2 else None,
|
|
b = self.age_disp(d, 'block'),
|
|
b = self.age_disp(d, 'block'),
|
|
D = self.age_disp(d, 'date_time'),
|
|
D = self.age_disp(d, 'date_time'),
|
|
- c = d.comment.fmt2(width=cw.comment, color=color, nullrepl='-'))
|
|
|
|
|
|
+ c = d.comment.fmt2(cw.comment, color=color, nullrepl='-'))
|
|
|
|
|
|
def display_total(self):
|
|
def display_total(self):
|
|
msg('\nTotal unspent: {} {} ({} output{})'.format(
|
|
msg('\nTotal unspent: {} {} ({} output{})'.format(
|