remove assert causing failures in console.py
This commit is contained in:
parent
8100efb48c
commit
412ace1c6f
3 changed files with 1 additions and 11 deletions
|
@ -221,14 +221,11 @@ def main(argv=None):
|
|||
if args.help:
|
||||
args.start_parser.print_help()
|
||||
elif args.full_node:
|
||||
print('Instantiating FullNode')
|
||||
service = FullNode(Ledger(conf))
|
||||
if conf.console == "advanced":
|
||||
console = AdvancedConsole(service)
|
||||
else:
|
||||
print('Instantiating BasicConsole')
|
||||
console = BasicConsole(service)
|
||||
print('Daemon(service, console).run()')
|
||||
return Daemon(service, console).run()
|
||||
else:
|
||||
print('Only `start --full-node` is currently supported.')
|
||||
|
|
|
@ -394,7 +394,7 @@ class Advanced(Basic):
|
|||
bar_name = f"{name}#{d['id']}"
|
||||
bar = self.bars.get(bar_name)
|
||||
if bar is None:
|
||||
assert d['done'][0] == 0
|
||||
#assert d['done'][0] == 0
|
||||
label = d.get('label', name[-11:])
|
||||
self.get_or_create_bar(
|
||||
f"{name}#{d['id']}", label, d['units'], d['total'],
|
||||
|
|
|
@ -96,9 +96,7 @@ class Daemon:
|
|||
pass # Not implemented on Windows
|
||||
|
||||
try:
|
||||
print('loop.run_until_complete(self.start())')
|
||||
loop.run_until_complete(self.start())
|
||||
print('loop.run_forever()')
|
||||
loop.run_forever()
|
||||
except (GracefulExit, KeyboardInterrupt, asyncio.CancelledError):
|
||||
pass
|
||||
|
@ -110,15 +108,10 @@ class Daemon:
|
|||
loop.run_until_complete(loop.shutdown_asyncgens())
|
||||
|
||||
async def start(self):
|
||||
print('self.console.starting()')
|
||||
self.console.starting()
|
||||
print('await self.runner.setup()')
|
||||
await self.runner.setup()
|
||||
print('TCPSite(self.runner, self.conf.api_host, self.conf.api_port)')
|
||||
site = TCPSite(self.runner, self.conf.api_host, self.conf.api_port)
|
||||
print('await site.start()')
|
||||
await site.start()
|
||||
print('await self.service.start()')
|
||||
await self.service.start()
|
||||
|
||||
async def stop(self):
|
||||
|
|
Loading…
Reference in a new issue