From 18794e4cfce1e72fe8981303b45f8df1d8dd27cc Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 27 May 2014 20:35:35 -0500 Subject: [PATCH] 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. --- params.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/params.go b/params.go index c5db6445a..235d2e7cf 100644 --- a/params.go +++ b/params.go @@ -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") )