Update for hdkeychain NewMaster API change.

This commit is contained in:
Dave Collins 2015-11-10 12:05:16 -06:00
parent 4f6edce6dc
commit 6ba74e6730
3 changed files with 3 additions and 3 deletions

View file

@ -185,7 +185,7 @@ func TstCreateSeries(t *testing.T, pool *Pool, definitions []TstSeriesDef) {
}
func TstCreateMasterKey(t *testing.T, seed []byte) *hdkeychain.ExtendedKey {
key, err := hdkeychain.NewMaster(seed)
key, err := hdkeychain.NewMaster(seed, &chaincfg.MainNetParams)
if err != nil {
t.Fatal(err)
}

View file

@ -1767,7 +1767,7 @@ func upgradeToVersion3(namespace walletdb.Namespace, seed, privPassPhrase, pubPa
}
// Derive the master extended key from the seed.
root, err := hdkeychain.NewMaster(seed)
root, err := hdkeychain.NewMaster(seed, chainParams)
if err != nil {
str := "failed to derive master extended key"
return managerError(ErrKeyChain, str, err)

View file

@ -2245,7 +2245,7 @@ func Create(namespace walletdb.Namespace, seed, pubPassphrase, privPassphrase []
// can generate the required structure with no issues.
// Derive the master extended key from the seed.
root, err := hdkeychain.NewMaster(seed)
root, err := hdkeychain.NewMaster(seed, chainParams)
if err != nil {
str := "failed to derive master extended key"
return nil, managerError(ErrKeyChain, str, err)