LoopIn rpc method returns empty htlc_address on mainnet
维护者通常 2 天内回复
@bhandras 已经在做这个了。
开始于 2023年4月13日。
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- Go
- 星标
- 593
- 派生
- 137
- 平均合并
- 4 天 18 小时
- 30 天内合并 PR
- 20
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lightninglabs/loop 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
lightninglabs/loop#1246 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 50/100
lightninglabs/loop#1208 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
lightninglabs/loop#1196 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 42/100
lightninglabs/loop#1172 ·
维护者通常 2 天内回复
-
Track armed static address HTLCs after aborted swaps可能重新可做 @hieblmi 于 113 天前认领,目前没有进行中的 PR。 未关闭
lightninglabs/loop#1171 · 已指派 1 人 ·
维护者通常 2 天内回复
查看 lightninglabs/loop 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
schema-drift
难度 2/5 1-3 小时 新手友好度 72/100
stefanhoth/paperless-ngx-cli#61 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
slavakurilyak/awesome-ai-agents#888 ·
维护者通常 1 天内回复
-
enhancement nav-pilot
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
kind/enhancement
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复