allow deny

This commit is contained in:
callebtc
2022-07-09 13:07:26 +02:00
parent 629edb33e5
commit f6f5b867f9
2 changed files with 4 additions and 4 deletions

View File

@@ -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}
}

View File

@@ -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)