minor cleanups

This commit is contained in:
The MMGen Project 2025-10-01 15:26:42 +00:00
commit fe45fbaa23
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 11 additions and 4 deletions

View file

@ -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)

View file

@ -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
View 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 = []