channeldb: ensure the nodeInfoBucket is deleted within .Wipe()

This commit is contained in:
Olaoluwa Osuntokun 2016-11-07 18:18:57 -08:00
parent 1855b95558
commit 8a4ba58d5b
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -77,6 +77,11 @@ func (d *DB) Wipe() error {
return err
}
err = tx.DeleteBucket(nodeInfoBucket)
if err != nil && err != bolt.ErrBucketNotFound {
return err
}
return nil
})
}