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

fix empty block handling #150

Merged
merged 1 commit into from Jan 23, 2019
Merged

fix empty block handling #150

merged 1 commit into from Jan 23, 2019

Conversation

crokkon
Copy link
Contributor

@crokkon crokkon commented Jan 21, 2019

Avoid BlockDoesNotExistsException on blockchain.stream() and Block() with only_ops=True on blocks without ops.
Fixes #149.

Returning a dict with the requested block number enables blockchain.blocks() to keep track of which blocks were handled already. Since there are no ops when this code branch is taken, the timestamp is irrelevant in this case.

Avoid BlockDoesNotExistsException on `blockchain.stream()` and `Block()`
with `only_ops=True` on blocks without ops.
Fixes holgern#149.
@holgern holgern merged commit 79a2b9e into holgern:master Jan 23, 2019
@crokkon crokkon deleted the ops branch September 5, 2020 14:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants