build-test-release / release (push) Successful in 32s
Root-caused and verified against the live fleet. An Antminer Z15 shows its
hashrate as e.g. "288T" when it is really ~288 kSol/s ("288k"). Equihash miners
report a Sol/s rate in the cgminer "GHS" key, but asic-rs AntMiner parse_hashrate
takes the unit from the key name ("GHS" -> GigaHash), scaling the value 1e9x too
large. The value is a raw Sol/s count, so for Equihash use the base Hash unit;
the toolkit`s SI-prefixing then yields "288k".
Matched by algorithm, and by "Z15" model name for the Z15J (which asic-rs leaves
algo Unknown). Fixed in both the v2020 and v2023_07 AntMiner backends, via
asic-rs patch queue 0002. Verified live: Z15 288T -> ~288k, Z15J 138T -> ~110k.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
38 lines
2.1 KiB
Plaintext
38 lines
2.1 KiB
Plaintext
upstream: asic-rs (crates.io)
|
|
version: 0.8.1 (cargo-vendored under vendor/, per ADR 0003)
|
|
state: pristine cargo-vendored tree + this patch queue.
|
|
|
|
asic-rs is materialized with `cargo vendor vendor` and consumed through
|
|
.cargo/config.toml's vendored-sources replacement (directory = "vendor").
|
|
Unlike wx-rs, asic-rs is many crates (asic-rs, asic-rs-core, and the
|
|
per-make / per-firmware crates); a change to any of them lives here as a
|
|
numbered .patch, NOT as an in-place edit of the pristine tree (ADR 0003).
|
|
|
|
The committed vendor/ tree already has the patches applied AND its affected
|
|
crates' .cargo-checksum.json refreshed, so a normal build needs nothing extra
|
|
-- the patch queue is provenance + the re-vendoring recipe.
|
|
|
|
GOTCHA (cargo caching): cargo fingerprints a registry/vendored crate by
|
|
(name, version, source), NOT by file content, so it will REUSE a cached
|
|
build of a vendored crate even after its source is edited. CI is unaffected
|
|
(fresh target/ each run compiles the patched source). But an incremental
|
|
LOCAL build that already compiled the unpatched crate must be forced:
|
|
cargo clean -p asic-rs-firmwares-whatsminer # then rebuild
|
|
Otherwise the local binary silently keeps the old behaviour.
|
|
|
|
Update / re-vendor flow:
|
|
1. bump the pin in crates/alkane-gui/Cargo.toml, `cargo vendor vendor`
|
|
(this regenerates a pristine vendor/ and DROPS our edits)
|
|
2. scripts/apply-asic-rs-patches.sh # re-applies patches/ + refreshes checksums
|
|
3. resolve any patch that no longer applies, rebuild, commit
|
|
|
|
patches/:
|
|
0001 whatsminer set_power_limit (round-9 #4): fix the v3 (WhatsMinerOS)
|
|
privileged auth -- the "super" account's token password is the separate
|
|
v3 credential (default "super"), not the web/admin password -- and send
|
|
the watts as a bare integer; also treat the apply-restart's transient
|
|
RPC error as success. See the patch header.
|
|
0002 antminer Equihash (Z15/Z15J) hashrate (round-10 #8): the cgminer "GHS"
|
|
key carries a Sol/s value, so use the base Hash unit for Equihash so the
|
|
SI prefix is correct ("288k", not "288T"). See the patch header.
|