Read a watch-only Bitcoin wallet into a preview

VL
13d ago
+2167-7

Upstream native PR #5672 · Upstream tracker.

Bitcoin wallet stack, part 3 of 5. Base feat/cash-anchor-accounting · Head stack/bitcoin-foundation.

Upstream discussion and review · Feature and dependency order.

This layer reads public addresses or a watch-only public key into a wallet preview. The reader follows new blocks during discovery and preserves the last complete balance across a reorganization. The same head is in we-promise/sure#5672.

Validation

  • Rails suite on the rebased head passed with 18,605 tests, 113,948 assertions, 9 skips, zero failures or errors.
  • Chromium: 450 runs, 2527 assertions, 0 failures, 0 errors, 0 skips.
  • RuboCop, full ERB lint, Biome and Brakeman passed.