[Bug] Linux miner --dry-run still makes five HTTP attempts during local preflight
I maintainer di solito rispondono entro 10 giorni
@Cid-oe ci sta già lavorando.
Dal 17/9/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- networking
Direzione di ricerca
Read miners/linux/rustchain_linux_miner.py around run_dry() and _request_with_network_retry, then miners/linux/fingerprint_checks.py around the cloud-metadata probes. Trace how dry-run policy reaches validate_all_checks() and check_anti_emulation(). Add a regression test that patches both HTTP request surfaces and verifies the chosen offline contract results in zero attempts, while local checks remain covered; multiple open pull requests are already linked.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Component
Miner (rustchain_*_miner)
What happened?
Summary
At commit aa584b344a766f6c0f8613ba7198d1cc7ffbae35, the documented Linux miner command
python miners/linux/rustchain_linux_miner.py --dry-run --show-payload --verbose --wallet ShaXiaozhu
exits successfully and does not attest, enroll, or mine, but it still attempts five HTTP requests during what the onboarding bounty describes as a no-network dry run:
http://169.254.169.254/http://169.254.169.254/latest/api/tokenhttps://rustchain.org/healththree times through the retry loop
This is a dry-run contract and side-effect bug. The requests were intercepted before transmission, so this report does not depend on production access.
Environment
- Date reproduced: 2026-09-14
- OS: Microsoft Windows 11 Home, version
10.0.26200(build 26200) - CPU: AMD Ryzen 7 4800H with Radeon Graphics
- Architecture: AMD64
- Python: repository-local Python 3.12 virtual environment
- Source:
Scottcjn/Rustchain@aa584b344a766f6c0f8613ba7198d1cc7ffbae35 - Miner entrypoint:
miners/linux/rustchain_linux_miner.py
The Linux miner correctly warns that Windows probes may be degraded. That warning is separate from the outbound-attempt behavior reported here.
Steps to reproduce
- Check out commit
aa584b344a766f6c0f8613ba7198d1cc7ffbae35and install the miner requirements in a clean virtual environment. - Replace
urllib.request.urlopenandrequests.sessions.Session.requestwith record-and-raise functions so attempted requests are logged and blocked before transmission. - Run the command above without changing the miner source.
- Inspect the recorded attempt list and exit code.
The recorded list was:
[
{"surface":"urllib","url":"http://169.254.169.254/"},
{"surface":"urllib","url":"http://169.254.169.254/latest/api/token"},
{"surface":"requests","method":"get","url":"https://rustchain.org/health"},
{"surface":"requests","method":"get","url":"https://rustchain.org/health"},
{"surface":"requests","method":"get","url":"https://rustchain.org/health"}
]
File writes were also denied, and ~/.rustchain/miner_key.json was absent before and after the run. The miner exited with code 0; all 6/6 fingerprint checks passed. The complete sanitized run is published here:
https://github.com/Scottcjn/rustchain-bounties/issues/2784#issuecomment-5659014628
Source path
The two link-local requests come from the anti-emulation cloud-metadata checks:
miners/linux/fingerprint_checks.py:463-491- https://github.com/Scottcjn/Rustchain/blob/aa584b344a766f6c0f8613ba7198d1cc7ffbae35/miners/linux/fingerprint_checks.py#L463-L491
The dry-run health request is issued from run_dry() and retried by _request_with_network_retry:
miners/linux/rustchain_linux_miner.py:876-882- https://github.com/Scottcjn/Rustchain/blob/aa584b344a766f6c0f8613ba7198d1cc7ffbae35/miners/linux/rustchain_linux_miner.py#L876-L882
- Retry code: https://github.com/Scottcjn/Rustchain/blob/aa584b344a766f6c0f8613ba7198d1cc7ffbae35/miners/linux/rustchain_linux_miner.py#L150-L180
Expected behavior
One contract should be made explicit and enforced:
--dry-runperforms no outbound request attempts; network-backed anti-emulation probes and the node health probe are skipped; or- if online read-only probes are intentional, add a separate
--offlineor--skip-network-probesoption and update onboarding text so--dry-runis not described as making no network calls.
For automated compatibility testing, a fully offline mode is the least surprising behavior.
Actual behavior
Object construction runs the fingerprint suite, including its cloud-metadata URL probes, before run_dry() executes. run_dry() then performs a node health request with three retries. There is no command-line option that makes the documented dry-run fully offline.
Impact
This is primarily an onboarding and automation-safety problem. A user can reasonably select dry-run to inspect local hardware without contacting the public node or a link-local cloud metadata service. Isolated CI and sandbox runs are also delayed by expected health-request retries.
Suggested fix
- Thread an offline/dry-run policy into
validate_all_checks()andcheck_anti_emulation()so cloud-metadata probes can be skipped without disabling local anti-emulation checks. - Make the
/healthprobe opt-in during fully offline dry-run. - Add a regression test that patches both HTTP surfaces and asserts zero outbound attempts under the offline contract.
- Keep current online probes available under an explicit flag if they remain useful for normal miner validation.
AI assistance disclosure: EarnPilot/Codex prepared the isolation harness and this report. The miner was executed locally on the recorded host and commit. No production mutation, attestation, enrollment, mining, or payment action occurred.
Expected behavior
A fully offline dry-run should make zero outbound request attempts. If read-only online probes are intentional, the CLI should expose an explicit --offline or --skip-network-probes mode and the onboarding text should distinguish online dry-run from offline hardware inspection.
Steps to reproduce
- Check out
Scottcjn/Rustchain@aa584b344a766f6c0f8613ba7198d1cc7ffbae35and install the Linux miner requirements in a clean Python 3.12 virtual environment. - Patch
urllib.request.urlopenandrequests.sessions.Session.requestwith record-and-raise functions so every attempted HTTP request is logged and blocked before transmission. - Run
python miners/linux/rustchain_linux_miner.py --dry-run --show-payload --verbose --wallet ShaXiaozhuwithout modifying the miner source. - Observe two link-local cloud-metadata attempts and three retries of
https://rustchain.org/healtheven though the miner exits with code 0 and does not attest, enroll, or mine.
Version / Commit
aa584b344a766f6c0f8613ba7198d1cc7ffbae35
Operating System
Windows
Relevant logs
exit_code=0
fingerprint_checks=6/6 PASS
network_attempts=5
- urllib: http://169.254.169.254/
- urllib: http://169.254.169.254/latest/api/token
- requests GET: https://rustchain.org/health (3 attempts)
network_policy=all attempts blocked before transmission
keystore_before=false
keystore_after=false
attestation=false; enrollment=false; mining=false
- Lingua principale
- Python
- Stelle
- 850
- Fork
- 589
- Merge medio
- 11g 7h
- PR unite (30g)
- 29
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Scottcjn/Rustchain
-
utxo_ledger (reference): failed apply_transaction leaks already-created outputs (supply inflation)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 10 giorni
-
SDK CLI prints 0 RTC for canonical /wallet/balance responsesForse già presa @ArtyormSatori l’ha presa 37 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Scottcjn/Rustchain#8580 · 4 commenti ·
I maintainer di solito rispondono entro 10 giorni
-
utxo_ledger (reference): no coinbase authorization; mempool admits any input-less MINING_REWARDAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
I maintainer di solito rispondono entro 10 giorni
-
[SECURITY] Non-finite and garbage weights pass the sybil-guard money chain — enrollment_weight has no isfinite guard and epoch_weight_to_units raises on NaN/infForse già presa @thinhnx128 l’ha presa 28 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Scottcjn/Rustchain#8619 · 2 commenti ·
I maintainer di solito rispondono entro 10 giorni
-
[Antiquity] Celeron M (Banias/Dothan, 2004) has no brand rule — real vintage silicon falls to x86 default 1.0x while its Pentium M twin earns 1.9xForse già presa @Limm-web l’ha presa 60 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Scottcjn/Rustchain#8578 · 5 commenti ·
I maintainer di solito rispondono entro 10 giorni
Tutte le issue di Scottcjn/Rustchain
Issue simili
-
[Resource]: SpaicelyApertaresource-submission validation-passed
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
hesreallyhim/awesome-claude-code#3875 · 1 commento ·
-
[Bug]: Ajax Pro login issueApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
bvis/aegis-hass#725 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xForse già presa @NimaVaziri l’ha presa oggi. ApertaPytorch
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA/TensorRT-LLM#23406 ·
I maintainer di solito rispondono entro 1 giorno