staticaddr: a deposit unlocked between the refresh and the lookup can be quoted or selected
Maintainer thường phản hồi trong vòng 1 ngày
@claravanstaden đang làm issue này rồi.
Từ ngày 12/11/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Start in staticaddr/loopin/manager.go at initiateLoopIn, then trace EnsureDepositsFresh, syncActiveDeposits, and the deposit lookup that follows the refresh. Check how the selected deposits can be validated against the refreshed UTXOs or refreshed after a failed swap returns a deposit to Deposited. Done when a replaced deposit cannot be quoted or selected in that window; the issue mentions an integration test that reproduces the race.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
EnsureDepositsFresh and the deposit lookup that follows it are two separate steps. syncActiveDeposits only drops deposits that are Deposited and gone from lnd's wallet, so a deposit that is still LoopingIn during the refresh is kept even if its funding tx was replaced. If the swap fails and unlocks that deposit before the lookup, the lookup finds it back in Deposited and uses it.
Seen in an integration test: after a restart, a stored risk rejection failed a swap whose deposit had been replaced by RBF while loopd was offline. A static loop-in quote for that outpoint arrived 5ms before the unlock and was answered. The next refresh drops the deposit.
The same two steps run before a loop-in starts (staticaddr/loopin/manager.go, initiateLoopIn), so manual or automatic selection can also pick the replaced deposit in that window. The server checks that the deposit outpoints are unspent when the swap starts, so the swap is rejected. Funds are not at risk, the user sees one failed swap attempt.
Possible fixes:
- after the lookup, check the selected deposits against the utxos the refresh just listed;
- or run the refresh again when a deposit comes back to
Depositedafter a failed swap.
Low priority.
- Ngôn ngữ chính
- Go
- Star
- 593
- Fork
- 139
- Merge trung bình
- 2 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 21
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 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
lightninglabs/loop#1309 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
GPG key, GPG key fingerprintĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 49/100
lightninglabs/loop#1276 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
lightninglabs/loop#1274 ·
Maintainer thường phản hồi trong vòng 1 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 1 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 82/100
Cojekt/LibreDental#258 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cmd/podiomd: permission MCP stalls the turn when a tool input exceeds the 64KB scanner limitĐang mởgo good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/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 78/100
opensro-dev/opensro#4949 ·
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 82/100
Maintainer thường phản hồi trong vòng 3 ngày
-
agent-execution/02 row 4: consumers Verify row lacks delivery/base binding, cannot pass post-mergeĐang mởbug effort:s impact:low raised-by:verifier risk:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
medici-finance/assay#7946 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày