From f6f5b867f994c45152db596403c66f69dd624639 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 9 Jul 2022 13:07:26 +0200 Subject: [PATCH] allow deny --- channelAcceptor.go | 4 ++-- htlcInterceptor.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/channelAcceptor.go b/channelAcceptor.go index 5152633..462aad4 100644 --- a/channelAcceptor.go +++ b/channelAcceptor.go @@ -71,7 +71,7 @@ func (app *app) dispatchChannelAcceptor(ctx context.Context) { res := lnrpc.ChannelAcceptResponse{} if accept { - log.Infof("✅ [channel %s] Accept channel %s", Configuration.ChannelMode, channel_info_string) + log.Infof("✅ [channel %s] Allow channel %s", Configuration.ChannelMode, channel_info_string) res = lnrpc.ChannelAcceptResponse{Accept: true, PendingChanId: req.PendingChanId, CsvDelay: req.CsvDelay, @@ -82,7 +82,7 @@ func (app *app) dispatchChannelAcceptor(ctx context.Context) { } } else { - log.Infof("❌ [channel %s] Reject channel %s", Configuration.ChannelMode, channel_info_string) + log.Infof("❌ [channel %s] Deny channel %s", Configuration.ChannelMode, channel_info_string) res = lnrpc.ChannelAcceptResponse{Accept: false, Error: Configuration.ChannelRejectMessage} } diff --git a/htlcInterceptor.go b/htlcInterceptor.go index e7423c7..36e19cf 100644 --- a/htlcInterceptor.go +++ b/htlcInterceptor.go @@ -136,10 +136,10 @@ func (app *app) interceptHtlcEvents(ctx context.Context, interceptor routerrpc.R IncomingCircuitKey: event.IncomingCircuitKey, } if <-decision_chan { - log.Infof("✅ [forward %s] Accept HTLC %s", Configuration.ForwardMode, forward_info_string) + log.Infof("✅ [forward %s] Allow HTLC %s", Configuration.ForwardMode, forward_info_string) response.Action = routerrpc.ResolveHoldForwardAction_RESUME } else { - log.Infof("❌ [forward %s] Reject HTLC %s", Configuration.ForwardMode, forward_info_string) + log.Infof("❌ [forward %s] Deny HTLC %s", Configuration.ForwardMode, forward_info_string) response.Action = routerrpc.ResolveHoldForwardAction_FAIL } err = interceptor.Send(response)