Skip to content

Commit 6fb8aee

Browse files
authored
Merge pull request #92 from bhandras/force-mc-import
router: support forced MC import
2 parents 5dfc1a3 + 2a48592 commit 6fb8aee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

router_client.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type RouterClient interface {
6262

6363
// ImportMissionControl imports a set of pathfinding results to lnd.
6464
ImportMissionControl(ctx context.Context,
65-
entries []MissionControlEntry) error
65+
entries []MissionControlEntry, force bool) error
6666

6767
// ResetMissionControl resets the Mission Control state of lnd.
6868
ResetMissionControl(ctx context.Context) error
@@ -950,13 +950,14 @@ func (r *routerClient) QueryMissionControl(ctx context.Context) (
950950
// ImportMissionControl imports a set of pathfinding results to mission control.
951951
// These results are not persisted across restarts.
952952
func (r *routerClient) ImportMissionControl(ctx context.Context,
953-
entries []MissionControlEntry) error {
953+
entries []MissionControlEntry, force bool) error {
954954

955955
rpcCtx, cancel := context.WithTimeout(ctx, r.timeout)
956956
defer cancel()
957957

958958
req := &routerrpc.XImportMissionControlRequest{
959959
Pairs: make([]*routerrpc.PairHistory, len(entries)),
960+
Force: force,
960961
}
961962

962963
for i, entry := range entries {

0 commit comments

Comments
 (0)