mirror of https://github.com/lightninglabs/loop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6a4ef3683a
Previously, when handling a sweep we assumed that if a sweep status was completed, the parent batch was also finished. However, since the batch confirmation status depends on three on-chain confirmations, it is possible that a spend notifier was started for a sweep of an active batch. The notifier would fetch the parent batch from the database, but because we incorrectly assumed that the parent was confirmed (when it was not), the DB call would fail with a 'no rows returned' error. This failure would cause the sweep to fail and the sweep batcher to stop, resulting in a permanent failure state. |
3 months ago | |
---|---|---|
.. | ||
migrations | 5 months ago | |
queries | 3 months ago | |
batch.sql.go | 3 months ago | |
db.go | 7 months ago | |
instantout.sql.go | 5 months ago | |
liquidity_params.sql.go | 7 months ago | |
migration_tracker.sql.go | 5 months ago | |
models.go | 5 months ago | |
querier.go | 5 months ago | |
reservations.sql.go | 7 months ago | |
swaps.sql.go | 5 months ago |