Skip to content
Draft
10 changes: 9 additions & 1 deletion .github/workflows/pr-severity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,19 @@ jobs:
with:
fetch-depth: 1

- name: Setup Bun
id: setup-bun
uses: oven-sh/setup-bun@3d267786b128fe76c2f16a390aa2448b815359f3
with:
bun-version: 1.3.6
token: ''

- name: Classify PR with Claude
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.PR_SEVERITY_BOT_TOKEN }}
github_token: ${{ github.token }}
path_to_bun_executable: ${{ steps.setup-bun.outputs.bun-path }}

# Allow any user since this workflow only reads PR metadata via API
# and doesn't execute any code from the PR. Tool permissions are
Expand Down
19 changes: 19 additions & 0 deletions config_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
// paymentMigration is the version number for the payments migration
// that migrates KV payments to the native SQL schema.
paymentMigration = 14

// taprootV2Migration is the version number for the migration that
// converts private taproot channels from V1 workaround storage to
// canonical V2 storage.
taprootV2Migration = 17
)

// GrpcRegistrar is an interface that must be satisfied by an external subserver
Expand Down Expand Up @@ -1209,6 +1214,20 @@

continue

case taprootV2Migration:
if !d.cfg.Dev.GetSkipTaprootV2Migration() { //nolint:ll
taprootMig := func(
tx *sqlc.Queries,
) error {

Check failure on line 1221 in config_builder.go

View workflow job for this annotation

GitHub Actions / Lint code

multi-line statement should be followed by a newline (whitespace)
return graphdb.MigratePrivateTaprootToV2( //nolint:ll
ctx, tx,
)
}
migrations[i].MigrationFn = taprootMig //nolint:ll
}

continue

default:
}

Expand Down
6 changes: 6 additions & 0 deletions docs/release-notes/release-notes-0.21.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@
[4](https://github.com/lightningnetwork/lnd/pull/10542),
[5](https://github.com/lightningnetwork/lnd/pull/10572),
[6](https://github.com/lightningnetwork/lnd/pull/10582).
* [Migrate private taproot channels in the SQL graph backend from the legacy
V1 workaround to canonical V2 storage](https://github.com/lightningnetwork/lnd/pull/10676).
Existing private taproot channels stored as V1 gossip objects with taproot
staging bits are rewritten as V2 channel rows, while a temporary `SQLStore`
shim keeps V1 graph callers and policy updates working until full gossip V2
support lands.
* Updated waiting proof persistence for gossip upgrades by introducing typed
waiting proof keys and payloads, with a DB migration to rewrite legacy
waiting proof records to the new key/value format
Expand Down
Loading
Loading