mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-12 15:17:32 +01:00
This commit adds the method DisconnectBlockAtHeight to the channel graph database, making it possible to "rewind" the database in case a block is disconnected from the main chain. To accomplish this, a prune log is introduced, making it possible to keep track of the point in time where the database was pruned. This is necessary for the case where lnd might wake up on a stale branch, and must "walk backwards" on this branch after it finds a common block fro the graph database and the new main chain.
62 KiB
62 KiB