Skip to content

staticaddr/address: harden multi-address startup - #1214

Draft
hieblmi wants to merge 3 commits into
lightninglabs:multi-address-corefrom
hieblmi:multi-address-address-hardening
Draft

staticaddr/address: harden multi-address startup#1214
hieblmi wants to merge 3 commits into
lightninglabs:multi-address-corefrom
hieblmi:multi-address-address-hardening

Conversation

@hieblmi

@hieblmi hieblmi commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

This is PR 2 of 3 in the static-address multi-address stack. It depends on
#1139 and is based on multi-address-core so this PR only shows the address
startup and issuance hardening.

This follow-up:

  • keeps address lookups responsive while a new address is issued, without
    holding the general manager lock across wallet, server, and store calls;
  • indexes static deposit addresses by script in loopd;
  • avoids reimporting persisted Taproot scripts that lnd already watches;
  • narrows duplicate-import error handling instead of suppressing unrelated
    wallet errors; and
  • adds multi-address restart and concurrent issuance coverage.

Stack

  1. staticaddr: multi-address #1139 — multi-address core
  2. This PR — address startup hardening
  3. staticaddr/withdraw: harden replacement monitoring #1215 — withdrawal replacement hardening

Testing

  • go test ./staticaddr/... ./loopd ./cmd/loop
  • git diff --check

Pull Request Checklist

  • Added an entry to docs/release-notes/release-notes-next.md.

@hieblmi
hieblmi force-pushed the multi-address-address-hardening branch from 56dcc74 to 7c226da Compare August 27, 2026 10:28
@hieblmi
hieblmi force-pushed the multi-address-core branch from 5600cbe to ed02b6e Compare August 27, 2026 10:28
@hieblmi
hieblmi force-pushed the multi-address-address-hardening branch 2 times, most recently from e85c0d3 to 6f82255 Compare August 27, 2026 11:46
@hieblmi
hieblmi force-pushed the multi-address-core branch from e392069 to e5b0830 Compare August 27, 2026 11:47
@hieblmi
hieblmi force-pushed the multi-address-address-hardening branch from 6f82255 to c458192 Compare August 27, 2026 12:41
@hieblmi
hieblmi force-pushed the multi-address-core branch from e5b0830 to a599226 Compare August 27, 2026 12:41
Decode the requested address to its pkScript and use the active
address index for ownership lookup. This avoids reconstructing and
scanning every persisted static address.
Ignore an lnd duplicate-import error only when it names the expected
Taproot output key. Propagate unrelated errors that happen to
contain the words already exists.
@hieblmi
hieblmi force-pushed the multi-address-core branch from a599226 to bc63656 Compare August 28, 2026 10:34
@hieblmi
hieblmi force-pushed the multi-address-address-hardening branch from c458192 to f709e0c Compare August 28, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants