Skip to content

Refactor role utils - #73

Merged
plebhash merged 21 commits into
stratum-mining:mainfrom
bit-aloo:2025-11-06-refactor-role-utils
Nov 13, 2025
Merged

Refactor role utils#73
plebhash merged 21 commits into
stratum-mining:mainfrom
bit-aloo:2025-11-06-refactor-role-utils

Conversation

@bit-aloo

@bit-aloo bit-aloo commented Nov 6, 2025

Copy link
Copy Markdown
Member

This PR moves most of the common and repetitive utils method spread across all the roles to stratum-apps utils module, and improve the type decoration for the roles as well.

@bit-aloo

bit-aloo commented Nov 6, 2025

Copy link
Copy Markdown
Member Author

@GitGab19 When reviewing, can you put more focus on this commit d341138, hope I didn't misinterpreted some of the types. I have not removed the usage of request_id as downstream_id in this PR. I will open another PR for that.

@bit-aloo
bit-aloo force-pushed the 2025-11-06-refactor-role-utils branch from 25b8843 to bff821b Compare November 6, 2025 09:53

@GitGab19 GitGab19 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall LGTM.

Just left a couple of minor things.

Comment thread stratum-apps/src/utils/types.rs Outdated
Comment thread stratum-apps/src/utils/types.rs Outdated
Comment thread stratum-apps/src/lib.rs Outdated
Comment thread stratum-apps/src/lib.rs Outdated
Comment thread pool-apps/pool/src/lib/io_task.rs
Comment thread miner-apps/translator/src/lib/sv1/sv1_server/sv1_server.rs Outdated
@bit-aloo
bit-aloo force-pushed the 2025-11-06-refactor-role-utils branch from 000382d to 7892e88 Compare November 11, 2025 16:57
@bit-aloo
bit-aloo force-pushed the 2025-11-06-refactor-role-utils branch from 7892e88 to b4e1ca3 Compare November 12, 2025 11:38
@plebhash
plebhash merged commit 474db5c into stratum-mining:main Nov 13, 2025
9 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