Merge pull request #731 from wpaulino/wtxmgr-migration-delete-bucket-fix

wtxmgr: ignore ErrBucketNotFound error upon locked outputs bucket deletion
This commit is contained in:
Olaoluwa Osuntokun 2021-02-17 15:06:27 -08:00 committed by GitHub
commit 39cbb7bdd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1543,7 +1543,8 @@ func deleteBuckets(ns walletdb.ReadWriteBucket) error {
str := "failed to delete unmined inputs bucket"
return storeError(ErrDatabase, str, err)
}
if err := ns.DeleteNestedBucket(bucketLockedOutputs); err != nil {
err := ns.DeleteNestedBucket(bucketLockedOutputs)
if err != nil && err != walletdb.ErrBucketNotFound {
str := "failed to delete locked outputs bucket"
return storeError(ErrDatabase, str, err)
}