From c7fa1e41094b8b4995cb18f3ee4697270b0e3df8 Mon Sep 17 00:00:00 2001 From: Andras Banki-Horvath Date: Fri, 31 May 2024 08:55:26 +0200 Subject: [PATCH] loopd: run the cost migration on start --- loopd/daemon.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/loopd/daemon.go b/loopd/daemon.go index c6496be34..bbc456df7 100644 --- a/loopd/daemon.go +++ b/loopd/daemon.go @@ -409,6 +409,12 @@ func (d *Daemon) initialize(withMacaroonService bool) error { return err } + // Run the costs migration. + err = loop.MigrateLoopOutCosts(d.mainCtx, d.lnd.LndServices, swapDb) + if err != nil { + return err + } + sweeperDb := sweepbatcher.NewSQLStore(baseDb, chainParams) // Create an instance of the loop client library.