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

GetUpdateChain error #2181

Closed
ineiti opened this issue Jan 17, 2020 · 0 comments · Fixed by #2182
Closed

GetUpdateChain error #2181

ineiti opened this issue Jan 17, 2020 · 0 comments · Fixed by #2182

Comments

@ineiti
Copy link
Member

ineiti commented Jan 17, 2020

The following else is not optimal:

https://github.com/dedis/cothority/blob/master/skipchain/skipchain.go#L528

Example given: in the current chain, conode.c4dt.org has been removed for some blocks. So it goes through the blocks and finds that the highest link from block 2048 points to a block with a roster where conode.c4dt.org is not in anymore. So it stops searching and returns.

Instead, the node should return as many blocks as he can. At least in this case the clients would receive more blocks like that.

Also the skipchain/Client.GetUpdateChain doesn't recognize the corner case where a node returns a valid block but where the node is not in the roster. This should not happen.

Also the external/js/cothority/src/skipchain/SkipchainRPC.getUpdateChain doesn't work correctly and can fall into an endless loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant