mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Previously, we passed the current best block height as the height hint to RegisterConfirmationsNtfn. If Loop was shut down when a sweep was confirmed and restarted later, it would use the current best height as the hint. This caused the confirmation to be missed, since it had already occurred before that height. This commit fixes the issue by passing the initiation height of the swap as the height hint instead. This is consistent with what we do in other places where we use RegisterConfirmationsNtfn. Since LND caches previously passed height hints for RegisterConfirmationsNtfn and uses maximum passed value, to actually recover in such a condition, one has to restart LND passing the option --height-hint-cache-query-disable and then restart Loop applying this fix. If a pruned bitcoind backend is used, this might not work. |
||
|---|---|---|
| .. | ||
| greedy_batch_selection.go | ||
| greedy_batch_selection_test.go | ||
| log.go | ||
| store.go | ||
| store_mock.go | ||
| sweep_batch.go | ||
| sweep_batcher.go | ||
| sweep_batcher_test.go | ||