mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-08 11:53:16 +01:00
In this commit, we fix an existing bug in the new graph query sync feature. Before this commit, when a block is pruned, we would never actually delete the update index entries. This is due to the fact that we would attempt to delete the entries from the update index _after_ we had already removed the edges from the update index. We fix this by simply swapping the order: first we delete from the update index, then we delete the edges themselves. A test ensuring that the entires are cleared (which failed before this commit), has been added.
59 KiB
59 KiB