diff --git a/mmgen_node_tools/data/version b/mmgen_node_tools/data/version index 102a890..1bc37c8 100644 --- a/mmgen_node_tools/data/version +++ b/mmgen_node_tools/data/version @@ -1 +1 @@ -3.1.dev13 +3.1.dev14 diff --git a/mmgen_node_tools/main_addrbal.py b/mmgen_node_tools/main_addrbal.py index 4218f6a..b0ab4f8 100755 --- a/mmgen_node_tools/main_addrbal.py +++ b/mmgen_node_tools/main_addrbal.py @@ -55,7 +55,7 @@ def do_output(proto,addr_data,blk_hdrs): make_timestr( blk_hdrs[u['height']]['time'] ), CoinTxID(u['txid']).hl(), red(str(u['vout']).rjust(4)), - proto.coin_amt(u['amount']).fmt(color=True,fs='6.8') + proto.coin_amt(u['amount']).fmt(color=True,iwidth=6,prec=8) )) else: Msg(f'{indent}No balance') @@ -94,7 +94,7 @@ def do_output_tabular(proto,addr_data,blk_hdrs): t = make_timestr( blk_hdrs[unspents[0]['height']]['time'] ), B = unspents[-1]['height'], T = make_timestr( blk_hdrs[unspents[-1]['height']]['time'] ), - A = proto.coin_amt(sum(u['amount'] for u in unspents)).fmt(color=True,fs='7.8') + A = proto.coin_amt(sum(u['amount'] for u in unspents)).fmt(color=True,iwidth=7,prec=8) )) else: Msg(fs.format( diff --git a/mmgen_node_tools/main_halving_calculator.py b/mmgen_node_tools/main_halving_calculator.py index c804d8f..5cbf2b8 100755 --- a/mmgen_node_tools/main_halving_calculator.py +++ b/mmgen_node_tools/main_halving_calculator.py @@ -168,9 +168,9 @@ async def main(): c = date(t), d = ' P' if n > nhist else '' if n < nhist else ' E', e = f'{bdr:8.5f}', - f = proto.coin_amt(sub,from_unit='satoshi').fmt(fs='2.8'), - g = proto.coin_amt(mined,from_unit='satoshi').fmt(fs='8.8'), - h = proto.coin_amt(total_mined,from_unit='satoshi').fmt(fs='8.8') + f = proto.coin_amt(sub,from_unit='satoshi').fmt(iwidth=2,prec=8), + g = proto.coin_amt(mined,from_unit='satoshi').fmt(iwidth=8,prec=8), + h = proto.coin_amt(total_mined,from_unit='satoshi').fmt(iwidth=8,prec=8) ) for n,sub,blk,mined,total_mined,bdr,t in gen_data()) ) diff --git a/setup.cfg b/setup.cfg index e9a2587..65b9639 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,7 +23,7 @@ python_requires = >=3.7 include_package_data = True install_requires = - mmgen>=13.3.dev14 + mmgen>=13.3.dev20 packages = mmgen_node_tools