Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Database migration broken during migration to master

Đang mở
#9,608 3 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 2 ngày

@vincenzopalazzo đang làm issue này rồi.

Từ ngày 8/10/2026.

  • #9613 của @vincenzopalazzo — đang mở

Đá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
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, sqlite
Lĩnh vực
database

Hướng nghiên cứu

Start by reading wallet/migrations.c around line 69 and trace the migration from database version 284 to 288, especially when the our_outputs table is created relative to this insert. Reproduce the reported upgrade from 26.06.8 to master and inspect the migration tests for that path. Done when the upgrade completes without the missing-table error.

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

Mô tả

Running commit 019a5e190. When migrating from 26.06.8 to master:

2026-10-07T20:30:15.567Z INFO lightningd: Updating database from version 284 to 288
2026-10-07T20:30:15.567Z BROKEN lightningd: Error executing statement: wallet/migrations.c:69: INSERT OR IGNORE INTO our_outputs (txid, outnum, blockheight, txindex, scriptpubkey, satoshis, spendheight, reserved_til, keyindex, channel_dbid, peer_id, commitment_point, option_anchors, csv) SELECT prev_out_tx, prev_out_index, COALESCE(confirmation_height, 0), CASE WHEN confirmation_height IS NULL THEN 0 WHEN is_in_coinbase = 1 THEN 0 ELSE 1 END, scriptpubkey, value, spend_height, COALESCE(reserved_til, 0), CASE WHEN channel_id IS NULL THEN keyindex ELSE NULL END, channel_id, peer_id, commitment_point, option_anchor_outputs, csv_lock FROM outputs WHERE scriptpubkey IS NOT NULL;: no such table: our_outputs

Ngôn ngữ chính
C
Star
3.1k
Fork
1k
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
45

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 ElementsProject/lightning

Tất cả issue của ElementsProject/lightning

Issue tương tự

Thêm issue về C

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.