[flake]: lnwallet/test/bitcoind.TestLightningWalletBitcoindRPCPolling/spend_unconfirmed_outputs

Đang mở Phù hợp với người mới
#11,642 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend, testing

Hướng nghiên cứu

Đọc lnwallet/test/test_interface.go tại assertTxInWallet và trường hợp TestLightningWalletBitcoindRPCPolling trong lnwallet/test. So sánh lần tra cứu ListTransactionDetails đơn lẻ hiện có với hành vi polling bất đồng bộ được mô tả trong issue. Hoàn thành khi assertion chờ trong một khoảng thời gian có giới hạn để giao dịch xuất hiện và bài kiểm thử bị ảnh hưởng chạy thành công với backend polling RPC của bitcoind.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

test flake

Automated flake report from the lnd flakes cop (claudell).

Occurrence

Failure

--- FAIL: TestLightningWalletBitcoindRPCPolling/btcwallet/bitcoind-rpc-polling:spend_unconfirmed_outputs
    test_interface.go:2426: transaction 00f124047bb72cf6... not found

Line 2426 is assertTxInWallet(t, alice, txHash, false), immediately after bob spends unconfirmed change to alice via sendCoins(..., minConfs=0).

Diagnosis

assertTxInWallet (lnwallet/test/test_interface.go:196) does a single ListTransactionDetails and t.Fatalfs if the tx is absent — no polling. The failing binary is the bitcoind RPC polling backend (TestLightningWalletBitcoindRPCPolling), which learns about mempool transactions asynchronously by polling bitcoind, so alice's wallet can legitimately not know about the just-broadcast tx at assert time. The node behaved correctly; the test asserted faster than the backend can observe.

This is the same missing-poll family as #11507 (fixed by open PR #11508 for get_transaction_details), but a different test and a different assertion line, so that PR does not cover it. The smallest fix is to make assertTxInWallet poll for a bounded time — for this backend, eventual mempool visibility is the real signal, not an assertion that should hold instantly.

Note: the flake agent's environment has no btcd/bitcoind chain backend, so this could not be reproduced locally and no fix PR is attached yet.

Ngôn ngữ chính
Go
Star
8.2k
Fork
2.3k
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
103

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của lightningnetwork/lnd

Tất cả issue của lightningnetwork/lnd

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.