Skip to content

Add a Test SV2 connection button to the pool settings#1752

Open
warioishere wants to merge 1 commit into
bitaxeorg:masterfrom
warioishere:feature/sv2-connection-test
Open

Add a Test SV2 connection button to the pool settings#1752
warioishere wants to merge 1 commit into
bitaxeorg:masterfrom
warioishere:feature/sv2-connection-test

Conversation

@warioishere

@warioishere warioishere commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Might be a confusion future: someone picks SV2 on a pool that only speaks SV1, the device quietly falls back, and they wonder why they're on the fallback pool. This adds a "Test SV2 connection" button under the SV2 authority key field (shown when a pool is set to SV2) so you can check before saving.

The test opens a throwaway TCP connection to the entered pool, sends a Noise handshake init and checks whether the pool answers with a Noise response — an SV1 pool won't. It deliberately doesn't complete the handshake (no crypto needed on our side, since ElligatorSwift accepts any 64-byte ephemeral) and runs on its own short-lived socket, so the running miner isn't touched.

Backend does the probe and returns { supported, message }; the frontend just shows the result as a toast. Works for both the primary and fallback pool.

Tested on hardware against an SV2 and an SV1 pool.

SV2 compatible:

grafik

Not SV2 compatible

grafik

Users who pick SV2 on a pool that doesn't support it silently end up on
the fallback and wonder why. This adds a button under the SV2 authority
key field that probes the entered pool for SV2 support before saving.

The probe opens a throwaway TCP connection, sends a Noise handshake init
and checks whether the pool answers with a Noise response. It doesn't
complete the handshake and doesn't touch the running miner. Backend does
the work and returns the verdict; the frontend just shows it.
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

Test Results

 2 files  ±0   2 suites  ±0   0s ⏱️ ±0s
92 tests ±0  92 ✅ ±0  0 💤 ±0  0 ❌ ±0 
94 runs  ±0  94 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 655aed3. ± Comparison against base commit b703e88.

@WantClue WantClue added the enhancement New feature or request label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants