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

Make client ignore blacklist if all servers holding a block are blacklisted #197

Merged
merged 3 commits into from
Jan 11, 2023

Conversation

borzunov
Copy link
Collaborator

@borzunov borzunov commented Jan 11, 2023

If all servers holding a certain block are blacklisted, we should display errors from them instead of raising No peers holding blocks.

Indeed, if the error is client-caused, the client should learn its reason from the latest error messages. In turn, if the error is server/network-caused and we only have a few servers, we'd better know the error instead of banning all the servers and making the user think that no servers are available.

This also removes the necessity to distinguish between client- and server-caused errors, since they may be hard to tell in practice. For example, if 50% of servers start supporting an increased sequence length but the other 50% don't, the client requesting to process a long sequence may fail after legitimately raised "client-caused" error from the older servers, even though it sends a valid request from the pov of the newer servers.

@borzunov borzunov changed the title Ignore blacklist if all servers holding block are blacklisted Make client ignore blacklist if all servers holding a block are blacklisted Jan 11, 2023
@borzunov borzunov merged commit b4f3224 into main Jan 11, 2023
@borzunov borzunov deleted the fix-blacklist branch January 11, 2023 12:50
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

1 participant