Browse Source

minor cleanups

The MMGen Project 2 months ago
parent
commit
fe45fbaa23

+ 2 - 2
mmgen_node_tools/main_blocks_info.py

@@ -164,7 +164,7 @@ async def main():
 
 
 	cls = JSONBlocksInfo if cfg.json else BlocksInfo
 	cls = JSONBlocksInfo if cfg.json else BlocksInfo
 
 
-	m = cls( cfg, cfg._args, await rpc_init(cfg,ignore_wallet=True) )
+	m = cls(cfg, cfg._args, await rpc_init(cfg, ignore_wallet=True))
 
 
 	if m.fnames and not cfg.no_header:
 	if m.fnames and not cfg.no_header:
 		m.print_header()
 		m.print_header()
@@ -178,4 +178,4 @@ async def main():
 
 
 	m.finalize_output()
 	m.finalize_output()
 
 
-async_run(main())
+async_run(cfg, main)

+ 2 - 2
mmgen_node_tools/main_halving_calculator.py

@@ -67,7 +67,7 @@ async def main():
 	proto = cfg._proto
 	proto = cfg._proto
 
 
 	from mmgen.rpc import rpc_init
 	from mmgen.rpc import rpc_init
-	c = await rpc_init( cfg, proto, ignore_wallet=True )
+	c = await rpc_init(cfg, proto, ignore_wallet=True)
 
 
 	tip = await c.call('getblockcount')
 	tip = await c.call('getblockcount')
 	assert tip > 1, 'block tip must be > 1'
 	assert tip > 1, 'block tip must be > 1'
@@ -181,4 +181,4 @@ async def main():
 	else:
 	else:
 		print_current_stats()
 		print_current_stats()
 
 
-async_run(main())
+async_run(cfg, main)

+ 7 - 0
test/modtest_d/__init__.py

@@ -0,0 +1,7 @@
+#!/usr/bin/env python3
+
+"""
+test.modtest_d: shared data for module tests for the MMGen Node Tools suite
+"""
+
+altcoin_tests = []