Do not error opening simnet wallets.

This commit is contained in:
Josh Rickmar 2014-05-30 15:53:19 -05:00
parent 03a45d7aa0
commit 9f7c2d60f7

View file

@ -508,6 +508,8 @@ func (net *netParams) ReadFrom(r io.Reader) (int64, error) {
*net = *(*netParams)(&btcnet.MainNetParams) *net = *(*netParams)(&btcnet.MainNetParams)
case btcwire.TestNet3: case btcwire.TestNet3:
*net = *(*netParams)(&btcnet.TestNet3Params) *net = *(*netParams)(&btcnet.TestNet3Params)
case btcwire.SimNet:
*net = *(*netParams)(&btcnet.SimNetParams)
default: default:
return n64, errors.New("unknown network") return n64, errors.New("unknown network")
} }