wtxmgr: remove old migration logic

In this commit, we remove the old upgrade/migration logic of the
transaction manager as it's been superseded by the new approach using
the migration.Manager interface.
This commit is contained in:
Wilmer Paulino 2018-11-02 18:43:22 -07:00
parent 69cb45e3e7
commit 2fb234c68f
No known key found for this signature in database
GPG key ID: 6DF57B9F9514972F

View file

@ -140,14 +140,6 @@ type Store struct {
NotifyUnspent func(hash *chainhash.Hash, index uint32) NotifyUnspent func(hash *chainhash.Hash, index uint32)
} }
// DoUpgrades performs any necessary upgrades to the transaction history
// contained in the wallet database, namespaced by the top level bucket key
// namespaceKey.
func DoUpgrades(db walletdb.DB, namespaceKey []byte) error {
// No upgrades
return nil
}
// Open opens the wallet transaction store from a walletdb namespace. If the // Open opens the wallet transaction store from a walletdb namespace. If the
// store does not exist, ErrNoExist is returned. // store does not exist, ErrNoExist is returned.
func Open(ns walletdb.ReadBucket, chainParams *chaincfg.Params) (*Store, error) { func Open(ns walletdb.ReadBucket, chainParams *chaincfg.Params) (*Store, error) {