Skip to content

discover ASIC telemetry by miner's username and port #615

Open
GitGab19 wants to merge 1 commit into
stratum-mining:mainfrom
GitGab19:asic-rs-follow-up
Open

discover ASIC telemetry by miner's username and port #615
GitGab19 wants to merge 1 commit into
stratum-mining:mainfrom
GitGab19:asic-rs-follow-up

Conversation

@GitGab19

Copy link
Copy Markdown
Member

This PR unblocks and fixes the issue we faced while working on stratum-mining/sv2-ui#202

It leverages the discovery feature of asic-rs to find miners into the configured subnet, and matches them with the clients connected to tProxy and/or JDC by comparing the pool's username returned by asic-rs (and the port) with the authorized_worker_name (in case of tProxy) and the user_identity field (in case of JDC).

It also adds some logic to detect duplicated usernames between different miners which might be running under the same subnet.

I still have to fully review the code, but on my end it works inside docker environment as well.

It would be good to get an early test on macOS from @lucasbalieiro 🙏

@GitGab19 GitGab19 changed the title discover ASIC telemetry by worker and port discover ASIC telemetry by miner's username and port Jul 14, 2026
@GitGab19 GitGab19 marked this pull request as draft July 14, 2026 21:03
@GitGab19

Copy link
Copy Markdown
Member Author

I just tested this on my old macOS, with Docker Desktop, without enabling host networking, and it worked!

photo_2026-07-15_10-15-59

cc @lucasbalieiro

@lucasbalieiro

This comment was marked as resolved.

Add CIDR-based miner telemetry discovery for tProxy and JDC, expose management IP/status metadata, and match discovered ASICs using the active pool username plus expected Stratum port to avoid false matches across tProxy/JDC. Install CA certificates in Docker images for reqwest-based telemetry requests, and update config examples and docs.
@GitGab19 GitGab19 force-pushed the asic-rs-follow-up branch from a114bdd to d0e7d95 Compare July 15, 2026 17:43
@GitGab19 GitGab19 marked this pull request as ready for review July 15, 2026 17:46
@GitGab19

Copy link
Copy Markdown
Member Author

Today we were able to test this together on @lucasbalieiro macOS, and it worked as well.

This PR is now ready for reviews :)

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