Simplify API #488

Merged
paratoxic merged 7 commits from simplify-api into master 2026-04-01 22:59:55 +00:00
Owner
No description provided.
Simplify API
Some checks failed
CI / test (macos-latest) (pull_request) Waiting to run
CI / test (windows-latest) (pull_request) Waiting to run
CI / lint (pull_request) Failing after 3s
CI / test-linux (pull_request) Failing after 4s
CI / ckpool (pull_request) Failing after 5s
81a5d2ea1c
Consolidate
Some checks failed
CI / test (macos-latest) (pull_request) Waiting to run
CI / test (windows-latest) (pull_request) Waiting to run
CI / ckpool (pull_request) Failing after 4s
CI / test-linux (pull_request) Failing after 5s
CI / lint (pull_request) Failing after 6s
dab5d2dfdd
Consolidate
Some checks failed
CI / test (macos-latest) (pull_request) Waiting to run
CI / test (windows-latest) (pull_request) Waiting to run
CI / ckpool (pull_request) Failing after 3s
CI / test-linux (pull_request) Failing after 4s
CI / lint (pull_request) Failing after 5s
7474314a44
Update
Some checks failed
CI / test (macos-latest) (pull_request) Waiting to run
CI / test (windows-latest) (pull_request) Waiting to run
CI / test-linux (pull_request) Failing after 3s
CI / lint (pull_request) Failing after 5s
CI / ckpool (pull_request) Failing after 6s
8f1914f553
Modify
Some checks failed
CI / test (macos-latest) (pull_request) Waiting to run
CI / test (windows-latest) (pull_request) Waiting to run
CI / lint (pull_request) Failing after 3s
CI / ckpool (pull_request) Failing after 4s
CI / test-linux (pull_request) Failing after 5s
d381064adc
Relevel
Some checks failed
CI / test (macos-latest) (pull_request) Waiting to run
CI / test (windows-latest) (pull_request) Waiting to run
CI / ckpool (pull_request) Failing after 3s
CI / lint (pull_request) Failing after 4s
CI / test-linux (pull_request) Failing after 5s
3e03bf5901
parabit approved these changes 2026-04-01 22:54:09 +00:00
parabit left a comment
Owner

LGTM

LGTM
@ -338,2 +337,2 @@
const lastShare = w.last_share != null ? `${w.last_share}s ago` : '-';
const bestShare = formatDifficulty(w.best_share);
return workers.sort((a, b) => b.stats.hashrate_1m - a.stats.hashrate_1m).map(w => {
const s = w.stats;
Owner

name the helper var stats could make remainder more readable.

name the helper var `stats` could make remainder more readable.
@ -130,20 +130,21 @@ async function refresh(signal) {
copyable('upstream_hash_days', formatHashDays(upstream.hash_days), upstream.hash_days);
rejectionWorkCopyable('upstream_rejected_work', upstream.accepted_work, upstream.rejected_work);
const s = data.stats;
Owner

same as above in terms of readability

same as above in terms of readability
Consolidate
Some checks failed
CI / lint (pull_request) Failing after 4s
CI / ckpool (pull_request) Failing after 5s
CI / test-linux (pull_request) Failing after 6s
CI / test (macos-latest) (pull_request) Has been cancelled
CI / test (windows-latest) (pull_request) Has been cancelled
459bad9c3f
paratoxic merged commit c5570c07bf into master 2026-04-01 22:59:55 +00:00
paratoxic deleted branch simplify-api 2026-04-01 22:59:56 +00:00
paratoxic referenced this pull request from a commit 2026-04-01 22:59:57 +00:00
Sign in to join this conversation.
No description provided.