Skip to content

Commit

Permalink
Merge pull request #731 from wpaulino/wtxmgr-migration-delete-bucket-fix
Browse files Browse the repository at this point in the history
wtxmgr: ignore ErrBucketNotFound error upon locked outputs bucket deletion
  • Loading branch information
Roasbeef authored Feb 17, 2021
2 parents 415f37f + 690a12f commit 39cbb7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wtxmgr/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 39cbb7b

Please sign in to comment.