1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-01 00:58:59 +01:00
eclair/docs
Bastien Teinturier 530b3c206f
Unlock utxos at startup (#2278)
We remove utxos locks that were previously set, otherwise we may have
utxos that stay locked indefinitely. This may happen if we started funding
a channel and restarted before completing the funding flow: the channel
will be safely forgotten but the corresponding utxos stay locked.

The only drawback that this may have is if we have funded and signed a
funding transaction but didn't publish it and we accidentally double-spend
it after a restart. This shouldn't be an issue because:

- locks are automatically removed when the transaction is published anyway
- funding transactions are republished at startup if they aren't in the
  blockchain or in the mempool
- funding transactions detect when they are double-spent and abort
  the channel creation
- the only case where double-spending a funding transaction causes  a loss
  of funds is when we accept a 0-conf channel and our peer double-spends it,
  but we should never accept 0-conf channels from peers we don't trust

We provide three strategies when locked utxos are detected: stop eclair,
unlock the utxos automatically, or ignore them.
2023-01-02 13:27:43 +01:00
..
release-notes Unlock utxos at startup (#2278) 2023-01-02 13:27:43 +01:00
API.md Convert wiki pages in to files in the docs directory and general docs file cleanups (#2165) 2022-02-06 20:28:50 +01:00
Architecture.md Convert wiki pages in to files in the docs directory and general docs file cleanups (#2165) 2022-02-06 20:28:50 +01:00
CircularRebalancing.md Additional parameters for findroute* API calls (#1969) 2021-10-22 09:04:29 +02:00
Cluster.md Update cluster documentation [ci skip] (#2122) 2022-01-24 18:04:25 +01:00
Configure.md Test change address type generation (#2513) 2022-11-30 15:44:40 +01:00
FAQ.md Convert wiki pages in to files in the docs directory and general docs file cleanups (#2165) 2022-02-06 20:28:50 +01:00
Features.md Convert wiki pages in to files in the docs directory and general docs file cleanups (#2165) 2022-02-06 20:28:50 +01:00
Guides.md Convert wiki pages in to files in the docs directory and general docs file cleanups (#2165) 2022-02-06 20:28:50 +01:00
Logging.md Convert wiki pages in to files in the docs directory and general docs file cleanups (#2165) 2022-02-06 20:28:50 +01:00
Monitoring.md Update dependencies (#2537) 2022-12-20 16:55:31 +01:00
MultipartPayments.md Convert wiki pages in to files in the docs directory and general docs file cleanups (#2165) 2022-02-06 20:28:50 +01:00
PostgreSQL.md Database migration Sqlite->Postgres (#2156) 2022-01-31 12:49:39 +01:00
Tor.md Drop support for Tor v2 hidden services (#2296) 2022-06-06 10:03:44 +02:00
TrampolinePayments.md Add a payment recipient abstraction (#2480) 2022-12-16 10:44:34 +01:00
Usage.md fixup! Convert wiki pages in to files in the docs directory and general docs file cleanups (#2165) (#2167) 2022-02-07 14:21:08 +01:00