Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: c7e5d56b58ec07cd0cb0a32fe8d96d6eccd54e4b
https://github.com/btcsuite/btcd/commit/c7e5d56b58ec07cd0cb0a32fe8d96d6eccd54e4b
Author: Dave Collins <[email protected]>
Date: 2016-04-11 (Mon, 11 Apr 2016)
Changed paths:
M chaincfg/params.go
A chaincfg/params_test.go
Log Message:
-----------
chaincfg: Register networks instead of hard coding. (#660)
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.