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:
commit
39cbb7bdd9
1 changed files with 2 additions and 1 deletions
|
@ -1543,7 +1543,8 @@ func deleteBuckets(ns walletdb.ReadWriteBucket) error {
|
||||||
str := "failed to delete unmined inputs bucket"
|
str := "failed to delete unmined inputs bucket"
|
||||||
return storeError(ErrDatabase, str, err)
|
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"
|
str := "failed to delete locked outputs bucket"
|
||||||
return storeError(ErrDatabase, str, err)
|
return storeError(ErrDatabase, str, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue