mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
This commit allows the account manager to handle the situation where an account participates in multiple consecutive batches that might still be in the mempool. Once the first batch confirms, the database state of the account might differ from the batch key used in that earlier batch. We need to cancel old spend and conf watches and only watch the latest batch for confirmation. While an account is in this pending batch state, no user modification like deposits or withdrawals are allowed so it's safe to just jump to the latest batch and wait for confirmations on that one. |
||
|---|---|---|
| .. | ||
| log.go | ||
| mock_test.go | ||
| watcher.go | ||
| watcher_test.go | ||