-
Notifications
You must be signed in to change notification settings - Fork 56
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
ValueError: max() arg is an empty sequence if there is only 1 filled block #4
Comments
Do you see the same error message Here in my case it is probably pretty trivial, I just left this issue as a TODO for myself, so I won't forget about it. Thanks for the reminder, I am fixing it today then. First step - how to reproduce:
looking into it now ... |
Obviously, in a benchmarking situation it is an extreme edgecase to fill only 1 block. But then, when trying to plot the diagrams, calculating averages, etc. was causing three problems, see this commit: 28c9cb4 My solution in the end was simply forbidding the whole case, i.e. not generating any diagram if there are less than 2 filled blocks, see here: chainhammer/reader/blocksDB_diagramming.py Lines 631 to 640 in 3c8c3ec
Solved. Closing this. Thanks for the reminder. Good luck finding a solution for your problem. |
when very few transactions, and all fit into 1 block:
then there is a problem:
details:
The text was updated successfully, but these errors were encountered: