waddrmgr/db: remove unused pubPassPhrase arg from upgradeToVersion5

This commit is contained in:
Wilmer Paulino 2018-11-02 18:42:27 -07:00
parent 541ad708c7
commit c01bbc4758
No known key found for this signature in database
GPG key ID: 6DF57B9F9514972F

View file

@ -2139,7 +2139,7 @@ func upgradeManager(db walletdb.DB, namespaceKey []byte, pubPassPhrase []byte,
if version < 5 {
err := walletdb.Update(db, func(tx walletdb.ReadWriteTx) error {
ns := tx.ReadWriteBucket(namespaceKey)
return upgradeToVersion5(ns, pubPassPhrase)
return upgradeToVersion5(ns)
})
if err != nil {
return err
@ -2167,7 +2167,7 @@ func upgradeManager(db walletdb.DB, namespaceKey []byte, pubPassPhrase []byte,
// to the fact that in version 5, we now store the encrypted master private
// keys on disk. However, using the BIP0044 key scope, users will still be able
// to create old p2pkh addresses.
func upgradeToVersion5(ns walletdb.ReadWriteBucket, pubPassPhrase []byte) error {
func upgradeToVersion5(ns walletdb.ReadWriteBucket) error {
// First, we'll check if there are any existing segwit addresses, which
// can't be upgraded to the new version. If so, we abort and warn the
// user.