Do not error opening simnet wallets.
This commit is contained in:
parent
03a45d7aa0
commit
9f7c2d60f7
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue