Update for hdkeychain NewMaster API change.
This commit is contained in:
parent
4f6edce6dc
commit
6ba74e6730
3 changed files with 3 additions and 3 deletions
|
@ -185,7 +185,7 @@ func TstCreateSeries(t *testing.T, pool *Pool, definitions []TstSeriesDef) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TstCreateMasterKey(t *testing.T, seed []byte) *hdkeychain.ExtendedKey {
|
func TstCreateMasterKey(t *testing.T, seed []byte) *hdkeychain.ExtendedKey {
|
||||||
key, err := hdkeychain.NewMaster(seed)
|
key, err := hdkeychain.NewMaster(seed, &chaincfg.MainNetParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1767,7 +1767,7 @@ func upgradeToVersion3(namespace walletdb.Namespace, seed, privPassPhrase, pubPa
|
||||||
}
|
}
|
||||||
|
|
||||||
// Derive the master extended key from the seed.
|
// Derive the master extended key from the seed.
|
||||||
root, err := hdkeychain.NewMaster(seed)
|
root, err := hdkeychain.NewMaster(seed, chainParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
str := "failed to derive master extended key"
|
str := "failed to derive master extended key"
|
||||||
return managerError(ErrKeyChain, str, err)
|
return managerError(ErrKeyChain, str, err)
|
||||||
|
|
|
@ -2245,7 +2245,7 @@ func Create(namespace walletdb.Namespace, seed, pubPassphrase, privPassphrase []
|
||||||
// can generate the required structure with no issues.
|
// can generate the required structure with no issues.
|
||||||
|
|
||||||
// Derive the master extended key from the seed.
|
// Derive the master extended key from the seed.
|
||||||
root, err := hdkeychain.NewMaster(seed)
|
root, err := hdkeychain.NewMaster(seed, chainParams)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
str := "failed to derive master extended key"
|
str := "failed to derive master extended key"
|
||||||
return nil, managerError(ErrKeyChain, str, err)
|
return nil, managerError(ErrKeyChain, str, err)
|
||||||
|
|
Loading…
Reference in a new issue