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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements #831

Merged
merged 27 commits into from
Oct 15, 2021
Merged

Minor improvements #831

merged 27 commits into from
Oct 15, 2021

Conversation

emmanuelm41
Copy link
Contributor

No description provided.

chain/verify.go Show resolved Hide resolved
client/client.go Outdated Show resolved Hide resolved

// WithSchemeID
// WithSchemeID allows user to set a scheme using its ID. The scheme
// is used to customize some behaviors inside the client
func WithSchemeID(schID string) Option {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait now I realize that we miss something here: there should be a way for the client to automatically fetch the ID from the endpoint so we dont need to give it as option. That's how it works currently for the public key / genesis hash. Can you add that in a subsequent PR as a TODO item ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add a TODO for this. Could you explain me which are the options a client has to work? Using chainInfo file is the first one. Which are the other ones?

Copy link
Member

@willscott willscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy to see this merged as is, and figure out how to infer scheme from chain info in a subsequent PR.

@emmanuelm41
Copy link
Contributor Author

@willscott Let's merge it then!

@willscott willscott merged commit 794b3c7 into drand:master Oct 15, 2021
@emmanuelm41 emmanuelm41 deleted the various-improvements branch October 15, 2021 18:06
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

3 participants