routing: add routing plugin inteface and skeleton

This commit is contained in:
Andras Banki-Horvath 2022-02-04 15:18:41 +01:00
parent 0f002733f6
commit 04ebc8d568
No known key found for this signature in database
GPG key ID: 80E5375C094198D8
3 changed files with 238 additions and 3 deletions

View file

@ -243,14 +243,14 @@ func (s *serverMock) Probe(ctx context.Context, amt btcutil.Amount,
return nil
}
func (s *serverMock) RecommendRoutingPlugin(_ context.Context, _ lntypes.Hash) (
RoutingPluginType, error) {
func (s *serverMock) RecommendRoutingPlugin(_ context.Context, _ lntypes.Hash,
_ [32]byte) (RoutingPluginType, error) {
return RoutingPluginNone, nil
}
func (s *serverMock) ReportRoutingResult(_ context.Context, _ lntypes.Hash,
_ RoutingPluginType, _ bool, _ int32, _ int64) error {
_ [32]byte, _ RoutingPluginType, _ bool, _ int32, _ int64) error {
return nil
}