Skip to content

Commit c7fa1e4

Browse files
committed
loopd: run the cost migration on start
1 parent f40ef19 commit c7fa1e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

loopd/daemon.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,12 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
409409
return err
410410
}
411411

412+
// Run the costs migration.
413+
err = loop.MigrateLoopOutCosts(d.mainCtx, d.lnd.LndServices, swapDb)
414+
if err != nil {
415+
return err
416+
}
417+
412418
sweeperDb := sweepbatcher.NewSQLStore(baseDb, chainParams)
413419

414420
// Create an instance of the loop client library.

0 commit comments

Comments
 (0)