Skip to content

Fix enptrypoint.sh path in Dockerfile#159

Merged
ShahanaFarooqui merged 1 commit into
ElementsProject:mainfrom
ShahanaFarooqui:fix-release-package
Apr 8, 2026
Merged

Fix enptrypoint.sh path in Dockerfile#159
ShahanaFarooqui merged 1 commit into
ElementsProject:mainfrom
ShahanaFarooqui:fix-release-package

Conversation

@ShahanaFarooqui
Copy link
Copy Markdown
Collaborator

No description provided.

@ShahanaFarooqui ShahanaFarooqui merged commit 530368d into ElementsProject:main Apr 8, 2026
3 checks passed
8144225309 referenced this pull request in 8144225309/superscalar-wallet May 28, 2026
…ts (#48)

Three changes addressing the post-#46 audit findings on the profile system
(tracked as bug #159 and design ticket #160).

A) Event-driven health dots in the dropdown
- NodePicker.handleSwitchNode fires NodesService.healthCheck() in the
  post-switch background refresh.
- NodePicker.handleDiscover (Rescan for Nodes button) fires it after the
  scan completes.
- nodesSlice.setProfileHealth now MERGES results by profileId instead of
  replacing the whole array. A partial probe -- one capped by
  WALLET_HEALTH_PROBE_MAX, or a switch that probed a subset -- no longer
  clears previously-known dot colors. Sticky-red: a node that went red
  stays red until the next successful probe answers from that profileId.
- No continuous polling added; dots refresh ONLY on profile switch or on
  Rescan button click. Entries are never auto-removed.

B) Env-gated auto-discovery + standardized profile-file path
- node-profiles.service.ts: PROFILES_FILE now defaults to ./node-profiles.json
  (unchanged behavior) but honors WALLET_PROFILES_FILE for an explicit
  absolute-path override. Isolated demos and orchestrator-driven test runs
  set this to a deterministic fixture path instead of relying on cwd.
- node-manager.service.ts: discoverNodes() bails immediately when
  WALLET_AUTODISCOVER=false. Production keeps the friendly auth-time scan;
  isolated/test runs get a frozen profile list.

D) Sequential capped probe in checkAllHealth
- Was Promise.allSettled(profiles.map(probe)) -- all profiles probed at
  once. Now: sequential loop with a configurable delay between probes
  (WALLET_HEALTH_PROBE_DELAY_MS, default 200ms) and a hard cap on
  attempts per scan (WALLET_HEALTH_PROBE_MAX, default 64).
- One commando connection at a time keeps the burst small. Profiles
  beyond the cap are skipped with a logger.warn line.

Together: predictable behavior, gentle probing, deterministic dot state
for the orchestrator + the isolated demo, no impact on production users
who don't set the new env vars.
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.

1 participant