Fix errors after deciding on the Register API.

The ParamsForNet function was removed, so likewise this change removes
ErrUnknownNet error that it used to return.

As network registration is now necessary for correct handling of
alternate network encoding magics, and therefore the ErrDuplicateNet
error returned by Register is here to stay, kill the comment about the
error being removed later.
This commit is contained in:
Josh Rickmar 2014-05-27 20:35:35 -05:00
parent 6f76171a82
commit 18794e4cfc

View file

@ -213,18 +213,9 @@ var TestNet3Params = Params{
}
var (
// ErrUnknownNet describes an error where the network parameters for a
// network cannot be looked up because the network is non-standard and
// is not registered into this package.
//
// This will be removed when ParamsForNet is eventually removed.
ErrUnknownNet = errors.New("unknown Bitcoin network")
// ErrDuplicateNet describes an error where the parameters for a Bitcoin
// network could not be set due to the network already being a standard
// network or previously-registered into this package.
//
// This will be removed when Register is eventually removed.
ErrDuplicateNet = errors.New("duplicate Bitcoin network")
)