Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in BlockQueue.push() #341

Open
only-dev-time opened this issue Sep 30, 2024 · 0 comments
Open

TypeError in BlockQueue.push() #341

only-dev-time opened this issue Sep 30, 2024 · 0 comments

Comments

@only-dev-time
Copy link
Contributor

A TypeError occurs when a MicroForkException is initialised:

Traceback (most recent call last):
  File "/usr/local/bin/hive", line 8, in <module>
    sys.exit(run())
  File "/usr/local/lib/python3.6/dist-packages/hive/cli.py", line 23, in run
    launch_mode(mode, conf)
  File "/usr/local/lib/python3.6/dist-packages/hive/cli.py", line 34, in launch_mode
    Sync(conf=conf).run()
  File "/usr/local/lib/python3.6/dist-packages/hive/indexer/sync.py", line 92, in run
    self.listen()
  File "/usr/local/lib/python3.6/dist-packages/hive/indexer/sync.py", line 190, in listen
    for block in steemd.stream_blocks(hive_head + 1, trail_blocks, max_gap):
  File "/usr/local/lib/python3.6/dist-packages/hive/steem/block/stream.py", line 94, in start
    popped = queue.push(block)
  File "/usr/local/lib/python3.6/dist-packages/hive/steem/block/stream.py", line 42, in push
    raise MicroForkException("%squeue:%d %s" % (alert, fork, buff))
TypeError: %d format: a number is required, not str

The arguments are probably reversed.

only-dev-time added a commit to only-dev-time/hivemind that referenced this issue Sep 30, 2024
only-dev-time added a commit to only-dev-time/hivemind that referenced this issue Sep 30, 2024
ety001 pushed a commit that referenced this issue Oct 5, 2024
* fix TypeError #341

* use f-string to display fork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant