mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-09 21:23:03 +02:00
routing: add option to force import MC pair history
This commit adds the `force` flag to the `XImportMissionControl` RPC which allows skipping rules around the pair import except for what is mandatory to make values meaningful. This can be useful for when clients would like to forcibly override MC state in order to manipulate routing results.
This commit is contained in:
@@ -553,7 +553,9 @@ func (s *Server) XImportMissionControl(ctx context.Context,
|
||||
snapshot.Pairs[i] = *pairSnapshot
|
||||
}
|
||||
|
||||
err := s.cfg.RouterBackend.MissionControl.ImportHistory(snapshot)
|
||||
err := s.cfg.RouterBackend.MissionControl.ImportHistory(
|
||||
snapshot, req.Force,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user