mirror of https://github.com/BTCPrivate/lnd.git
channeldb: ensure the nodeInfoBucket is deleted within .Wipe()
This commit is contained in:
parent
1855b95558
commit
8a4ba58d5b
|
@ -77,6 +77,11 @@ func (d *DB) Wipe() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = tx.DeleteBucket(nodeInfoBucket)
|
||||||
|
if err != nil && err != bolt.ErrBucketNotFound {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue