diff --git a/channeldb/db.go b/channeldb/db.go index ccf488d8..bd96133f 100644 --- a/channeldb/db.go +++ b/channeldb/db.go @@ -307,7 +307,11 @@ func (d *DB) FetchAllChannels() ([]*OpenChannel, error) { func (d *DB) syncVersions(versions []version) error { meta, err := d.FetchMeta(nil) if err != nil { - return err + if err == ErrMetaNotFound { + meta = &Meta{} + } else { + return err + } } // If the current database version matches the latest version number,