LoopIn rpc method returns empty htlc_address on mainnet
Maintainer thường phản hồi trong vòng 2 ngày
@bhandras đang làm issue này rồi.
Từ ngày 13/4/2023.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
In regtest (compiled from the repository), the LoopIn response (SwapStatus) correctly returns a populated htlc_address_p2wsh field. However, in the mainnet, both htlc_address_p2wsh and htlc_address_p2tr fields are empty.
Steps to reproduce:
The following code snippet demonstrates invoking a LoopIn request that returns empty htlc_address fields:
//Use the client to request the swap
lastHopVertex, err := route.NewVertexFromStr(request.LastHopPubkey)
if err != nil {
return SubmarineSwapResponse{}, err
}
lastHopBytes := lastHopVertex[:]
//Do a quote for loop in
quote, err := client.GetLoopInQuote(ctx, &looprpc.QuoteRequest{
Amt: request.SatsAmount,
//ConfTarget: 1, //TODO Make this configurable
ExternalHtlc: true,
Private: false,
LoopInLastHop: lastHopBytes,
})
if err != nil {
log.Error(err)
return SubmarineSwapResponse{}, err
}
//Get limits
limits := getInLimits(quote)
log.Debugf("loop in quote: %+v", quote)
log.Debugf("loop in limits: %+v", limits)
resp, err := client.LoopIn(ctx, &looprpc.LoopInRequest{
Amt: request.SatsAmount,
MaxSwapFee: int64(limits.maxSwapFee),
MaxMinerFee: int64(limits.maxMinerFee),
LastHop: lastHopBytes,
ExternalHtlc: true,
HtlcConfTarget: 0,
Label: fmt.Sprintf("Submarine swap %d sats on date %s", request.SatsAmount, time.Now().Format(time.RFC3339)),
Initiator: "Liquidator",
Private: false,
//TODO Review if hop hints are needed
})
System information:
We are using the standalone loopd binary in a Docker container and invoking the API directly. The Docker container is a Linux/AMD64 container on k8s with LOOPD version 0.20.2-beta. The loopd Docker image OS is used.
In regtest, we are using the latest loopd compiled from the git repository. On the mainnet, we are using the Docker image, which might is outdated and could be causing the issue.
Original Slack thread: https://lightningcommunity.slack.com/archives/CH2HVK23A/p1681317311908629
- Ngôn ngữ chính
- Go
- Star
- 593
- Fork
- 137
- Merge trung bình
- 4 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lightninglabs/loop
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
lightninglabs/loop#1246 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
lightninglabs/loop#1208 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
lightninglabs/loop#1196 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
lightninglabs/loop#1172 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Track armed static address HTLCs after aborted swapsCó thể làm lại được @hieblmi đã nhận 113 ngày trước và không có pull request nào đang mở. Đang mở
lightninglabs/loop#1171 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của lightninglabs/loop
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
cloudevents/sdk-go#1346 ·
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kubernetes/cloud-provider-aws#1517 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-butler-finding chore
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
jordansmall/spindrift#6221 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 3 ngày