Skip to content

Refactor advanced mining settings into shared compact form - #226

Merged
pavlenex merged 2 commits into
stratum-mining:mainfrom
pavlenex:compact-advanced-mining-config
Jul 28, 2026
Merged

Refactor advanced mining settings into shared compact form#226
pavlenex merged 2 commits into
stratum-mining:mainfrom
pavlenex:compact-advanced-mining-config

Conversation

@pavlenex

Copy link
Copy Markdown
Contributor

This PR refactors the advanced mining configuration into a shared component used by both the setup wizard and Settings, ensuring the fields, defaults, validation, and descriptions remain consistent. It also introduces a more compact responsive layout by constraining the form width, placing Shares Per Minute and Extranonce2 Size side-by-side on wider screens, and keeping Coinbase Verification in a compact row while preserving mobile-friendly stacking.

My main motivation was Shares Per Minute and Extranonce2 Size side-by-side which inspired a bigger code unification. But tbh it's probably not worth the amount of changes, however if @lucasbalieiro likes it we can proceed with it, on my end.

Screenshot 2026-07-21 at 13 31 27 Screenshot 2026-07-21 at 13 30 21

@pavlenex
pavlenex requested a review from lucasbalieiro July 21, 2026 08:39

@lucasbalieiro lucasbalieiro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the field is allowing some "crazy" values that breaks the config file:

Image

translator dies cannot start due to bad config:

Translator proxy config error: Bad `config` TOML deserialize: `invalid type: 64-bit unsigned integer `1000000000000`, expected an unsigned 16 bit integer for key `downstream_extranonce2_size``

we probably already had this before, but worth fixing by adding a validation to the Downstream extranonce2 field since we are already touching this area.

@pavlenex
pavlenex requested a review from lucasbalieiro July 24, 2026 11:43
@pavlenex

Copy link
Copy Markdown
Contributor Author

@lucasbalieiro Good one, fixed in ea0872f

@lucasbalieiro lucasbalieiro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 7fefdfa

@GitGab19

GitGab19 commented Jul 27, 2026

Copy link
Copy Markdown
Member

Can you solve conflicts @pavlenex? I can do it if you prefer, but there's a chance I'd become the author of your commits after that.

@GitGab19
GitGab19 force-pushed the compact-advanced-mining-config branch 2 times, most recently from 619aaf3 to 99a8f27 Compare July 27, 2026 18:44
@GitGab19
GitGab19 requested a review from lucasbalieiro July 27, 2026 18:45

@lucasbalieiro lucasbalieiro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK rebase

@pavlenex
pavlenex force-pushed the compact-advanced-mining-config branch from 99a8f27 to 83bae3d Compare July 28, 2026 06:16
@pavlenex
pavlenex merged commit 54787d7 into stratum-mining:main Jul 28, 2026
5 checks passed
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.

3 participants