Skip to content

Commit

Permalink
fix: missing getchaninfo, be more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
fiksn committed Nov 2, 2022
1 parent 3fb7e28 commit 7f79084
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:1.19 as app-builder
ARG TOKEN
ENV ENV_TOKEN $TOKEN

WORKDIR /go/src/app
COPY . .
RUN make clean linux && ls -ali ./release/balance-agent*linux*

FROM scratch

ENV AWS_DEFAULT_REGION us-east-1

COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=app-builder /go/src/app/release/balance-agent*linux* /balance-agent
VOLUME ["/tmp"]

USER 666
ENTRYPOINT ["/balance-agent"]
5 changes: 4 additions & 1 deletion lightning_api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

entities "github.com/bolt-observer/go_common/entities"
"github.com/getsentry/sentry-go"
"github.com/golang/glog"
)

type ApiType int
Expand Down Expand Up @@ -202,7 +203,9 @@ func getNodeInfoFull(l LightingApiCalls, threshUseDescribeGraph int, ctx context
}
c, err := l.GetChanInfo(ctx, ch.ChanId)
if err != nil {
return nil, err
glog.Warningf("Could not get channel info for %v: %v", ch.ChanId, err)
extendedNodeInfo.NumChannels -= 1
continue
}
private, ok := privateMapping[ch.ChanId]
extendedNodeInfo.Channels = append(extendedNodeInfo.Channels, NodeChannelApiExtended{NodeChannelApi: *c, Private: ok && private})
Expand Down

0 comments on commit 7f79084

Please sign in to comment.