loopd: run the cost migration on start

This commit is contained in:
Andras Banki-Horvath 2024-05-31 08:55:26 +02:00
parent f40ef193e9
commit c7fa1e4109
No known key found for this signature in database
GPG key ID: 80E5375C094198D8

View file

@ -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.