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

Check how zcashd handles missing blocks? #1307

Closed
teor2345 opened this issue Nov 16, 2020 · 4 comments · Fixed by #1518
Closed

Check how zcashd handles missing blocks? #1307

teor2345 opened this issue Nov 16, 2020 · 4 comments · Fixed by #1518
Labels
A-rust Area: Updates to Rust code C-bug Category: This is a bug

Comments

@teor2345
Copy link
Contributor

teor2345 commented Nov 16, 2020

Task

When Zebra's inbound service answers a BlocksByHash, if any of those blocks aren't in Zebra's best chain, it errors and drops the entire request.

We need to check if zcashd returns partial responses instead.

Once we've resolved this ticket, we should remove or update the corresponding TODO comment:
https://github.com/ZcashFoundation/zebra/blob/main/zebrad/src/components/inbound.rs#L145

@teor2345 teor2345 added C-bug Category: This is a bug A-rust Area: Updates to Rust code S-needs-triage Status: A bug report needs triage labels Nov 16, 2020
@teor2345 teor2345 added this to the First Alpha Release milestone Nov 16, 2020
@teor2345
Copy link
Contributor Author

@hdevalence do you think we need to do this task in the first alpha release?

@mpguerra mpguerra removed the S-needs-triage Status: A bug report needs triage label Nov 26, 2020
@mpguerra
Copy link
Contributor

I'm going to move this off the First Alpha Release milestone.

As far as I can tell this doesn't affect the actual sync. Although it might mean we're not exactly a well behaving node by dropping the request, it seems like a reasonable enough action that would not otherwise adversely affect the network.

@mpguerra mpguerra removed this from the First Alpha Release milestone Nov 30, 2020
@daira
Copy link
Contributor

daira commented Nov 30, 2020

This is not ideal, but I don't think it will cause any harm to the network.

@teor2345
Copy link
Contributor Author

zcashd ignores missing blocks, but returns notfound for missing transactions:
https://github.com/zcash/zcash/blob/e7b425298f6d9a54810cb7183f00be547e4d9415/src/main.cpp#L5517

This means our block state machine needs to be modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rust Area: Updates to Rust code C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants