Ver código fonte

update for MMGen v13.3.dev20

The MMGen Project 1 ano atrás
pai
commit
affa891041

+ 1 - 1
mmgen_node_tools/data/version

@@ -1 +1 @@
-3.1.dev13
+3.1.dev14

+ 2 - 2
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(

+ 3 - 3
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())
 		)
 

+ 1 - 1
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