mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 19:46:52 +02:00
routerrpc: expose mission control reset rpc
This commit is contained in:
@@ -59,6 +59,10 @@ var (
|
||||
Entity: "offchain",
|
||||
Action: "read",
|
||||
}},
|
||||
"/routerrpc.Router/ResetMissionControl": {{
|
||||
Entity: "offchain",
|
||||
Action: "write",
|
||||
}},
|
||||
}
|
||||
|
||||
// DefaultRouterMacFilename is the default name of the router macaroon
|
||||
@@ -439,3 +443,13 @@ func marshallChannelUpdate(update *lnwire.ChannelUpdate) *ChannelUpdate {
|
||||
ExtraOpaqueData: update.ExtraOpaqueData,
|
||||
}
|
||||
}
|
||||
|
||||
// ResetMissionControl clears all mission control state and starts with a clean
|
||||
// slate.
|
||||
func (s *Server) ResetMissionControl(ctx context.Context,
|
||||
req *ResetMissionControlRequest) (*ResetMissionControlResponse, error) {
|
||||
|
||||
s.cfg.RouterBackend.MissionControl.ResetHistory()
|
||||
|
||||
return &ResetMissionControlResponse{}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user