minor cleanups
This commit is contained in:
parent
37c74e361c
commit
fe45fbaa23
3 changed files with 11 additions and 4 deletions
|
|
@ -164,7 +164,7 @@ async def main():
|
|||
|
||||
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:
|
||||
m.print_header()
|
||||
|
|
@ -178,4 +178,4 @@ async def main():
|
|||
|
||||
m.finalize_output()
|
||||
|
||||
async_run(main())
|
||||
async_run(cfg, main)
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ async def main():
|
|||
proto = cfg._proto
|
||||
|
||||
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')
|
||||
assert tip > 1, 'block tip must be > 1'
|
||||
|
|
@ -181,4 +181,4 @@ async def main():
|
|||
else:
|
||||
print_current_stats()
|
||||
|
||||
async_run(main())
|
||||
async_run(cfg, main)
|
||||
|
|
|
|||
7
test/modtest_d/__init__.py
Executable file
7
test/modtest_d/__init__.py
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
test.modtest_d: shared data for module tests for the MMGen Node Tools suite
|
||||
"""
|
||||
|
||||
altcoin_tests = []
|
||||
Loading…
Add table
Add a link
Reference in a new issue