Skip to content

deprecate roles_logic_sv2, benches, error_handling, utils::bip32_derivation#1947

Merged
plebhash merged 12 commits into
stratum-mining:mainfrom
lucasbalieiro:drop-roles-logic-sv2
Oct 17, 2025
Merged

deprecate roles_logic_sv2, benches, error_handling, utils::bip32_derivation#1947
plebhash merged 12 commits into
stratum-mining:mainfrom
lucasbalieiro:drop-roles-logic-sv2

Conversation

@lucasbalieiro
Copy link
Copy Markdown
Collaborator

@lucasbalieiro lucasbalieiro commented Oct 15, 2025

closes #1940
To be merged AFTER #1931

  • drops benches
  • drops error_handling
  • drops utils::bip32_derivation

Drops roles_logic_sv2 by:

  • Refactoring roles::jd-client, roles::pool, and roles::translator to no longer depend on roles_logic_sv2::error.

  • Updating jd-server and roles::test-utils::mining-device to use crates from crates.io.

    • These crates still implement roles_logic_sv2::handlers, and their refactor is already planned.
    • This avoids keeping roles_logic_sv2 in the codebase just for them.
  • Moving roles_logic_sv2::utils::Mutex to roles::stratum-apps::custom_mutex::Mutex.

Comment thread roles/jd-client/src/lib/error.rs Outdated
Comment thread roles/jd-server/Cargo.toml Outdated
Comment thread roles/stratum-apps/src/custom_mutex.rs
@lucasbalieiro lucasbalieiro force-pushed the drop-roles-logic-sv2 branch 5 times, most recently from 72f542b to 2d5a3a7 Compare October 15, 2025 18:09
Comment thread test/integration-tests/Cargo.toml Outdated
@lucasbalieiro lucasbalieiro marked this pull request as ready for review October 15, 2025 19:16
@lucasbalieiro lucasbalieiro marked this pull request as draft October 16, 2025 19:54
@lucasbalieiro lucasbalieiro changed the title deprecate roles_logic_sv2 deprecate roles_logic_sv2 and benches Oct 17, 2025
@lucasbalieiro lucasbalieiro marked this pull request as ready for review October 17, 2025 09:52
Comment thread .github/workflows/release-libs.yaml
Comment thread .github/workflows/rust-msrv.yaml
Comment thread roles/jd-server/Cargo.toml
Comment thread roles/stratum-apps/src/error_handling/mod.rs Outdated
Comment thread roles/stratum-apps/src/lib.rs
Comment thread utils/Cargo.toml Outdated
lucasbalieiro and others added 4 commits October 17, 2025 08:53
…d adapt where needed

Co-authored-by: GitGab19 <gabriele.vernetti@protonmail.com>
…crates.io

versions of protocol crates instead of local workspace versions. This allows
these components to use the deprecated roles_logic_sv2 while the rest of
the workspace continues with local implementations.
- Add crates.io protocol dependencies (roles_logic_sv2, codec_sv2, etc.)
- Update imports to use direct crate references
- Use network_helpers_sv2 and rpc_sv2 from crates.io
- Configure stratum-apps to exclude core/network features for jd_serverRefactor transa0ction validation logic

Co-authored-by: GitGab19 <gabriele.vernetti@protonmail.com>
Comment thread roles/stratum-apps/src/key_utils/mod.rs
@lucasbalieiro lucasbalieiro changed the title deprecate roles_logic_sv2 and benches deprecate roles_logic_sv2, benches, error_handling, utils::bip32_derivation Oct 17, 2025
Copy link
Copy Markdown
Member

@Shourya742 Shourya742 left a comment

Choose a reason for hiding this comment

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

@lucasbalieiro protocol/fuzz-test, has a dependency on roles-logic-sv2, can you update that.

@lucasbalieiro
Copy link
Copy Markdown
Collaborator Author

lucasbalieiro commented Oct 17, 2025

@lucasbalieiro protocol/fuzz-test, has a dependency on roles-logic-sv2, can you update that.

@Shourya742, thanks. Done!
5f45a6f

Copy link
Copy Markdown
Member

@GitGab19 GitGab19 left a comment

Choose a reason for hiding this comment

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

utACK

@plebhash plebhash merged commit 92a702a into stratum-mining:main Oct 17, 2025
11 checks passed
@lucasbalieiro lucasbalieiro deleted the drop-roles-logic-sv2 branch October 17, 2025 19:02
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.

deprecate roles_logic_sv2

4 participants