Skip to content

Commit

Permalink
loopd: run the cost migration on start
Browse files Browse the repository at this point in the history
  • Loading branch information
bhandras committed Jun 3, 2024
1 parent f40ef19 commit c7fa1e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions loopd/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c7fa1e4

Please sign in to comment.