Skip to content

Remove unused code; one way to build the node connection - #72

Merged
MarkSierra merged 1 commit into
mainfrom
claude/bold-planck-14e4f1
Nov 10, 2026
Merged

MarkSierra merged 1 commit into
mainfrom
claude/bold-planck-14e4f1

Conversation

@MarkSierra

@MarkSierra MarkSierra commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Part of the 0.3.13 release (review simplifications S2–S5, S9–S11). No change in behaviour, except that two unused options are gone. Net −64 lines.

Every item was checked for uses in the app, the tests, the docs and both package repositories before it was removed.

Deleted

  • Node layer (S2): RESTClient.headers with _split_headers, MAX_HEADERS, new_headers_syntax; Node.utxo_set_info; Node.last_latency (written, never read); getblockcount on the RPC whitelist (the app never called it). The mock node no longer serves REST headers or getblockcount. tests/umbrel_feed.py still calls getblockcount: that is CI tooling with its own RPC helper against the regtest node, not the app's client.
  • Store (S3): store.now, Store.lock, Store._seq, Store.spam_utxo_count (tests now query utxo_hist directly), Store.size_on_disk, and the readonly branch of Store (the web server opens its own read-only connections in analytics.py).
  • Settings (S4): Setting.file_ok (always true), .group, and .choices (unused once the API fields went); json_schema() with --print-settings-schema (nothing read the schema; the StartOS package has its own model); UPSTREAM_DATE; the label entries in PROFILES; the fields of /api/settings the page does not use (default, help, choices, group, secret); the setting allow_pause_when_managed. Pause is always available now, as before by default; an old value in settings.json is ignored like any unknown key. docs/settings.md and docs/startos.md updated.

Simplified

  • S9: node.client.make_node(config, timeout=None) replaces Scanner.make_node, the second copy of the proxy parsing in maybe_utxo_info, and the Scanner that the connection test and the block lookup built only to make a node.
  • S10: BlockNotConnected (a subclass of BlockInvalid) replaces matching "parent" in the error text during the full scan. New test.
  • S11: Scanner.node_busy() replaces the two copies of the latency rule.

Added

  • S5: a test for the built-in HTTPS server (tls_cert/tls_key, certificate made with openssl): https answers, TLS 1.2 or newer, plain http on that port fails.

Full suite: 251 tests pass locally. Changelog under [Unreleased].

No change in behaviour, except that two unused options are gone.

- Node layer (S2): RESTClient.headers and its helpers, Node.utxo_set_info,
  Node.last_latency, getblockcount on the whitelist; the mock node no longer
  serves them.
- Store (S3): store.now, Store.lock, Store._seq, spam_utxo_count,
  size_on_disk and the readonly branch (the web server has its own read-only
  connections).
- Settings (S4): Setting.file_ok, .group and .choices, json_schema with
  --print-settings-schema, UPSTREAM_DATE, the PROFILES labels, the fields of
  /api/settings the page does not use, and allow_pause_when_managed (pause is
  always available; an old value in settings.json is ignored).
- S5: a test for the built-in HTTPS server (certificate made with openssl).
- S9: node.client.make_node(config, timeout) replaces Scanner.make_node, the
  second copy in maybe_utxo_info and the Scanner built only to make a node in
  the connection test and the lookup.
- S10: BlockNotConnected (a BlockInvalid) replaces matching "parent" in the
  error text.
- S11: Scanner.node_busy() replaces the two copies of the latency rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MarkSierra
MarkSierra merged commit caafe21 into main Nov 10, 2026
15 checks passed
@MarkSierra
MarkSierra deleted the claude/bold-planck-14e4f1 branch November 10, 2026 09:20
@MarkSierra MarkSierra mentioned this pull request Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants