From c01bbc47587f497ac5016339496f8bed0fd5c9bb Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Fri, 2 Nov 2018 18:42:27 -0700 Subject: [PATCH] waddrmgr/db: remove unused pubPassPhrase arg from upgradeToVersion5 --- waddrmgr/db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waddrmgr/db.go b/waddrmgr/db.go index d1da802..e0c3f6d 100644 --- a/waddrmgr/db.go +++ b/waddrmgr/db.go @@ -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.