From 5a4a66e8915e0dfedd0ddb42d4a76c0051cae8f6 Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Wed, 14 Jan 2026 09:14:42 +0100 Subject: [PATCH] staticaddr: reconcile deposits after wallet indexing --- staticaddr/deposit/manager.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/staticaddr/deposit/manager.go b/staticaddr/deposit/manager.go index ccce718ba..f7fc16d89 100644 --- a/staticaddr/deposit/manager.go +++ b/staticaddr/deposit/manager.go @@ -153,6 +153,12 @@ func (m *Manager) Run(ctx context.Context, initChan chan struct{}) error { // Reconcile new deposits that might have just gotten // confirmed. + // Before reconciling our in-mem view of deposits with + // lnd we give the wallet extra time to index + // transactions of interest in the new block. This + // mitigates a race between wallet indexing and + // reconciling deposits. + time.Sleep(500 * time.Millisecond) if err = m.reconcileDeposits(ctx); err != nil { log.Errorf("unable to reconcile deposits: %v", err)