mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-04 01:42:33 +01:00
In this commit, we make the channel part of the graph SQL migration idempotent (retry-safe!). We do this by adding a migration-only channel insert query that will not error out if a the query is called and a chanenl with the given scid&version already exists. We also ensure that errors are not thrown if existing channel features & extra types are re-added.