Skip to content

Commit debb31d

Browse files
committed
docs: add release not for network separation safeguard
This is in particular important when running with a postgres backend. This only works if you run LND with the native sql flag but people should run it with this flag from 21 on anyways.
1 parent 3c0509a commit debb31d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docs/release-notes/release-notes-0.21.0.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,15 @@
300300

301301
## Database
302302

303-
* Freeze the [graph SQL migration
303+
* [Prevent silent data corruption](https://github.com/lightningnetwork/lnd/pull/10684)
304+
when reusing the same database across different Bitcoin networks. On first
305+
startup the active network is persisted in a new `chain_params` table; on
306+
every subsequent restart lnd compares the stored value against the configured
307+
network and refuses to start if they differ, printing a clear error message
308+
with remediation steps. This safeguard applies to both the PostgreSQL and
309+
SQLite native-SQL backends when running with `--db.use-native-sql`.
310+
311+
* Freeze the [graph SQL migration
304312
code](https://github.com/lightningnetwork/lnd/pull/10338) to prevent the
305313
need for maintenance as the sqlc code evolves.
306314
* Prepare the graph DB for handling gossip V2

0 commit comments

Comments
 (0)