diff --git a/lnrpc/routerrpc/router.pb.go b/lnrpc/routerrpc/router.pb.go index f9d0f4336..0476353b0 100644 --- a/lnrpc/routerrpc/router.pb.go +++ b/lnrpc/routerrpc/router.pb.go @@ -737,6 +737,68 @@ func (m *ChannelUpdate) GetExtraOpaqueData() []byte { return nil } +type ResetMissionControlRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResetMissionControlRequest) Reset() { *m = ResetMissionControlRequest{} } +func (m *ResetMissionControlRequest) String() string { return proto.CompactTextString(m) } +func (*ResetMissionControlRequest) ProtoMessage() {} +func (*ResetMissionControlRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_7a0613f69d37b0a5, []int{8} +} + +func (m *ResetMissionControlRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResetMissionControlRequest.Unmarshal(m, b) +} +func (m *ResetMissionControlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResetMissionControlRequest.Marshal(b, m, deterministic) +} +func (m *ResetMissionControlRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetMissionControlRequest.Merge(m, src) +} +func (m *ResetMissionControlRequest) XXX_Size() int { + return xxx_messageInfo_ResetMissionControlRequest.Size(m) +} +func (m *ResetMissionControlRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ResetMissionControlRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ResetMissionControlRequest proto.InternalMessageInfo + +type ResetMissionControlResponse struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ResetMissionControlResponse) Reset() { *m = ResetMissionControlResponse{} } +func (m *ResetMissionControlResponse) String() string { return proto.CompactTextString(m) } +func (*ResetMissionControlResponse) ProtoMessage() {} +func (*ResetMissionControlResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7a0613f69d37b0a5, []int{9} +} + +func (m *ResetMissionControlResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ResetMissionControlResponse.Unmarshal(m, b) +} +func (m *ResetMissionControlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ResetMissionControlResponse.Marshal(b, m, deterministic) +} +func (m *ResetMissionControlResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResetMissionControlResponse.Merge(m, src) +} +func (m *ResetMissionControlResponse) XXX_Size() int { + return xxx_messageInfo_ResetMissionControlResponse.Size(m) +} +func (m *ResetMissionControlResponse) XXX_DiscardUnknown() { + xxx_messageInfo_ResetMissionControlResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_ResetMissionControlResponse proto.InternalMessageInfo + func init() { proto.RegisterEnum("routerrpc.Failure_FailureCode", Failure_FailureCode_name, Failure_FailureCode_value) proto.RegisterType((*PaymentRequest)(nil), "routerrpc.PaymentRequest") @@ -747,89 +809,94 @@ func init() { proto.RegisterType((*SendToRouteResponse)(nil), "routerrpc.SendToRouteResponse") proto.RegisterType((*Failure)(nil), "routerrpc.Failure") proto.RegisterType((*ChannelUpdate)(nil), "routerrpc.ChannelUpdate") + proto.RegisterType((*ResetMissionControlRequest)(nil), "routerrpc.ResetMissionControlRequest") + proto.RegisterType((*ResetMissionControlResponse)(nil), "routerrpc.ResetMissionControlResponse") } func init() { proto.RegisterFile("routerrpc/router.proto", fileDescriptor_7a0613f69d37b0a5) } var fileDescriptor_7a0613f69d37b0a5 = []byte{ - // 1224 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x56, 0xef, 0x72, 0x1a, 0x37, - 0x10, 0x2f, 0xb1, 0xcd, 0x9f, 0x05, 0xcc, 0x59, 0xb6, 0x13, 0x4c, 0xe2, 0xc4, 0xa1, 0x9d, 0xd6, - 0x93, 0xe9, 0xd8, 0x53, 0x3a, 0x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86, 0x5e, 0x30, 0xa5, 0x93, - 0x19, 0x0b, 0x02, 0x3e, 0xa7, 0x9e, 0x5b, 0xdf, 0x52, 0x1e, 0x77, 0x32, 0xaa, 0xa3, 0x19, 0xd3, - 0x6d, 0xfe, 0x06, 0xb5, 0x65, 0x18, 0x49, 0x14, 0x06, 0x09, 0x47, 0x07, 0x50, 0x94, 0x71, 0xcc, - 0x58, 0x32, 0x53, 0x81, 0x54, 0x88, 0x8c, 0xeb, 0x8c, 0x25, 0x33, 0xf4, 0x1c, 0x4a, 0x51, 0xcc, - 0xa9, 0xe7, 0xb3, 0x29, 0x57, 0x51, 0x54, 0x48, 0x31, 0x8a, 0xb9, 0x29, 0xd7, 0xe8, 0x15, 0x94, - 0x23, 0x6d, 0x8a, 0xf2, 0x38, 0x56, 0x31, 0x94, 0x08, 0xa4, 0x10, 0x8e, 0xe3, 0xe6, 0x0f, 0x50, - 0x23, 0x32, 0x97, 0x3d, 0xce, 0xb3, 0x9c, 0x21, 0xd8, 0x74, 0x79, 0x22, 0x52, 0x3f, 0xea, 0x5b, - 0xe6, 0x91, 0xf9, 0xeb, 0x89, 0xca, 0x33, 0x5f, 0xe6, 0xa8, 0xe9, 0x82, 0xb1, 0xda, 0x9f, 0x1e, - 0xf6, 0x18, 0x0c, 0x79, 0x3f, 0x32, 0x5c, 0x99, 0x63, 0x5f, 0xee, 0xca, 0xa9, 0x5d, 0xdb, 0x29, - 0xde, 0xe3, 0x7c, 0x90, 0x30, 0x81, 0xbe, 0xd6, 0x29, 0xa4, 0xf3, 0x70, 0x72, 0x4d, 0x5d, 0x3e, - 0x67, 0x77, 0xa9, 0xf9, 0xaa, 0x84, 0xfb, 0xe1, 0xe4, 0xba, 0x2b, 0xc1, 0xe6, 0xaf, 0x80, 0x1c, - 0x1e, 0xb8, 0xa3, 0x50, 0xf9, 0xca, 0x0e, 0xfa, 0x1a, 0x2a, 0x59, 0x70, 0x6b, 0x89, 0xc9, 0x02, - 0x56, 0xc9, 0x69, 0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x60, 0xe0, 0x44, 0x78, 0xbe, 0x9c, 0x78, - 0xe9, 0xbb, 0x85, 0xd6, 0xf5, 0x0f, 0x1e, 0xc3, 0xc6, 0xf3, 0x47, 0xb9, 0xd4, 0x58, 0x5f, 0x1f, - 0x29, 0x7d, 0x39, 0xd0, 0xe1, 0x9a, 0xf6, 0xf3, 0xe7, 0xaa, 0xf1, 0xf2, 0xff, 0x68, 0x6d, 0xed, - 0xfd, 0x77, 0xbf, 0x9c, 0x4e, 0x3d, 0x31, 0x5b, 0x5c, 0x9e, 0x4c, 0x42, 0xff, 0x74, 0xee, 0x4d, - 0x67, 0x22, 0xf0, 0x82, 0x69, 0xc0, 0xc5, 0x1f, 0x61, 0x7c, 0x7d, 0x3a, 0x0f, 0xdc, 0x53, 0xf5, - 0x7a, 0x9d, 0x2e, 0xcd, 0x5c, 0xe6, 0xd5, 0x1f, 0x9f, 0xef, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, - 0x89, 0x21, 0x7b, 0xbd, 0x28, 0x09, 0x00, 0x00, + // 1271 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0xdd, 0x72, 0x1a, 0x37, + 0x14, 0x2e, 0xf1, 0x0f, 0x70, 0x00, 0xb3, 0x96, 0xed, 0x04, 0xe3, 0x38, 0x71, 0xb6, 0x6d, 0xea, + 0xc9, 0x74, 0xec, 0x29, 0x9d, 0xe4, 0xb2, 0x1d, 0x02, 0xa2, 0xde, 0x09, 0xec, 0x52, 0x01, 0x4e, + 0xdc, 0x5e, 0x68, 0x64, 0x56, 0x86, 0xad, 0xd9, 0x1f, 0xef, 0x8a, 0x36, 0x7e, 0x81, 0xbe, 0x4e, + 0x9f, 0xa2, 0xd7, 0xbd, 0xee, 0xdb, 0x74, 0x24, 0xed, 0x02, 0x76, 0x9c, 0xe9, 0x15, 0xe8, 0xfb, + 0x3e, 0x9d, 0xa3, 0x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c6, 0xba, 0xfa, 0x48, 0xe9, 0xb3, 0x83, + 0x0e, 0x57, 0xb4, 0x9f, 0xbe, 0x75, 0xf5, 0x67, 0x9f, 0xa3, 0x53, 0x6b, 0x2e, 0xec, 0x3c, 0x90, + 0x0a, 0xf4, 0xf5, 0xea, 0x09, 0x3e, 0x9b, 0xc8, 0xfa, 0xcb, 0xff, 0x93, 0x69, 0x2f, 0x6f, 0xbf, + 0xfb, 0xe5, 0x74, 0xe2, 0x89, 0xe9, 0xfc, 0xf2, 0x64, 0x1c, 0xfa, 0xa7, 0x33, 0x6f, 0x32, 0x15, + 0x81, 0x17, 0x4c, 0x02, 0x2e, 0xfe, 0x08, 0xe3, 0xeb, 0xd3, 0x59, 0xe0, 0x9e, 0xaa, 0x07, 0xf6, + 0x74, 0x61, 0xee, 0x72, 0x53, 0x7d, 0x9b, 0x7d, 0xff, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x01, + 0xde, 0xa4, 0x83, 0xcb, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -860,6 +927,10 @@ type RouterClient interface { //differs from SendPayment in that it allows users to specify a full route //manually. This can be used for things like rebalancing, and atomic swaps. SendToRoute(ctx context.Context, in *SendToRouteRequest, opts ...grpc.CallOption) (*SendToRouteResponse, error) + //* + //ResetMissionControl clears all mission control state and starts with a clean + //slate. + ResetMissionControl(ctx context.Context, in *ResetMissionControlRequest, opts ...grpc.CallOption) (*ResetMissionControlResponse, error) } type routerClient struct { @@ -897,6 +968,15 @@ func (c *routerClient) SendToRoute(ctx context.Context, in *SendToRouteRequest, return out, nil } +func (c *routerClient) ResetMissionControl(ctx context.Context, in *ResetMissionControlRequest, opts ...grpc.CallOption) (*ResetMissionControlResponse, error) { + out := new(ResetMissionControlResponse) + err := c.cc.Invoke(ctx, "/routerrpc.Router/ResetMissionControl", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // RouterServer is the server API for Router service. type RouterServer interface { //* @@ -915,6 +995,10 @@ type RouterServer interface { //differs from SendPayment in that it allows users to specify a full route //manually. This can be used for things like rebalancing, and atomic swaps. SendToRoute(context.Context, *SendToRouteRequest) (*SendToRouteResponse, error) + //* + //ResetMissionControl clears all mission control state and starts with a clean + //slate. + ResetMissionControl(context.Context, *ResetMissionControlRequest) (*ResetMissionControlResponse, error) } func RegisterRouterServer(s *grpc.Server, srv RouterServer) { @@ -975,6 +1059,24 @@ func _Router_SendToRoute_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } +func _Router_ResetMissionControl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ResetMissionControlRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RouterServer).ResetMissionControl(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/routerrpc.Router/ResetMissionControl", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RouterServer).ResetMissionControl(ctx, req.(*ResetMissionControlRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Router_serviceDesc = grpc.ServiceDesc{ ServiceName: "routerrpc.Router", HandlerType: (*RouterServer)(nil), @@ -991,6 +1093,10 @@ var _Router_serviceDesc = grpc.ServiceDesc{ MethodName: "SendToRoute", Handler: _Router_SendToRoute_Handler, }, + { + MethodName: "ResetMissionControl", + Handler: _Router_ResetMissionControl_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "routerrpc/router.proto", diff --git a/lnrpc/routerrpc/router.proto b/lnrpc/routerrpc/router.proto index dc875d680..852170546 100644 --- a/lnrpc/routerrpc/router.proto +++ b/lnrpc/routerrpc/router.proto @@ -245,6 +245,9 @@ message ChannelUpdate { */ bytes extra_opaque_data = 12; } +message ResetMissionControlRequest{} + +message ResetMissionControlResponse{} service Router { /** @@ -268,4 +271,10 @@ service Router { manually. This can be used for things like rebalancing, and atomic swaps. */ rpc SendToRoute(SendToRouteRequest) returns (SendToRouteResponse); + + /** + ResetMissionControl clears all mission control state and starts with a clean + slate. + */ + rpc ResetMissionControl(ResetMissionControlRequest) returns (ResetMissionControlResponse); } diff --git a/lnrpc/routerrpc/router_backend.go b/lnrpc/routerrpc/router_backend.go index 2b66f1f7c..97d4d88bd 100644 --- a/lnrpc/routerrpc/router_backend.go +++ b/lnrpc/routerrpc/router_backend.go @@ -36,6 +36,8 @@ type RouterBackend struct { FindRoute func(source, target route.Vertex, amt lnwire.MilliSatoshi, restrictions *routing.RestrictParams, finalExpiry ...uint16) (*route.Route, error) + + MissionControl *routing.MissionControl } // QueryRoutes attempts to query the daemons' Channel Router for a possible diff --git a/lnrpc/routerrpc/router_server.go b/lnrpc/routerrpc/router_server.go index 9f08237ad..d47dbe69d 100644 --- a/lnrpc/routerrpc/router_server.go +++ b/lnrpc/routerrpc/router_server.go @@ -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 +} diff --git a/routing/router.go b/routing/router.go index 37443b2df..1e4ec7063 100644 --- a/routing/router.go +++ b/routing/router.go @@ -1598,7 +1598,9 @@ type LightningPayment struct { // will be returned which describes the path the successful payment traversed // within the network to reach the destination. Additionally, the payment // preimage will also be returned. -func (r *ChannelRouter) SendPayment(payment *LightningPayment) ([32]byte, *route.Route, error) { +func (r *ChannelRouter) SendPayment(payment *LightningPayment) ([32]byte, + *route.Route, error) { + // Before starting the HTLC routing attempt, we'll create a fresh // payment session which will report our errors back to mission // control. diff --git a/rpcserver.go b/rpcserver.go index eebed0d26..e2381987b 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -476,7 +476,8 @@ func newRPCServer(s *server, macService *macaroons.Service, return info.NodeKey1Bytes, info.NodeKey2Bytes, nil }, - FindRoute: s.chanRouter.FindRoute, + FindRoute: s.chanRouter.FindRoute, + MissionControl: s.missionControl, } var ( diff --git a/server.go b/server.go index 8c5fafe06..d11fede01 100644 --- a/server.go +++ b/server.go @@ -187,6 +187,8 @@ type server struct { breachArbiter *breachArbiter + missionControl *routing.MissionControl + chanRouter *routing.ChannelRouter authGossiper *discovery.AuthenticatedGossiper @@ -646,7 +648,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl, return link.Bandwidth() } - missionControl := routing.NewMissionControl( + s.missionControl = routing.NewMissionControl( chanGraph, selfNode, queryBandwidth, ) @@ -656,7 +658,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl, ChainView: cc.chainView, Payer: s.htlcSwitch, Control: channeldb.NewPaymentControl(chanDB), - MissionControl: missionControl, + MissionControl: s.missionControl, ChannelPruneExpiry: routing.DefaultChannelPruneExpiry, GraphPruneInterval: time.Duration(time.Hour), QueryBandwidth: queryBandwidth,