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

chaincfg: Register networks instead of hard coding. #260

Merged
merged 2 commits into from
Jun 1, 2016

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented May 30, 2016

Upstream commit c7e5d56.

This modifies the chaincfg package to register the default network
params via the init function instead of manually hard coding their data
into the maps.  This is less error prone when adding new default
networks.

A new function named mustRegister has been introduced that panics if
there are any errors when registering the network that the new code
makes use of and appropriate tests have been added.
@jcvernaleo jcvernaleo added this to the v0.1.5 milestone May 31, 2016
@cjepson
Copy link
Contributor

cjepson commented Jun 1, 2016

OK

@alexlyp
Copy link
Member

alexlyp commented Jun 1, 2016

tACK

@alexlyp alexlyp merged commit d6ac2f0 into decred:master Jun 1, 2016
@davecgh davecgh deleted the merge_chaincfg_register branch June 1, 2016 19:56
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.

4 participants