Make version rolling mask configurable in sv1_rolling function#37
Make version rolling mask configurable in sv1_rolling function#37krishnavbajoria02 wants to merge 2 commits into
Conversation
- Replaced the hardcoded version rolling mask (0x1FFFE000) with a configurable mechanism. - Added support for configuring the pool's mask via the POOL_MASK environment variable. - Negotiated the mask dynamically between upstream and downstream using bitwise AND. - Considered the version_rolling_min_bit_count from the mining.configure message. This change allows dynamic negotiation between upstream and downstream, improving flexibility and protocol compliance.
Priceless-P
left a comment
There was a problem hiding this comment.
Hi @krishnavbajoria02, please ensure the code compiles, and run cargo fmt and cargo clippy before submitting. Thanks!
@Priceless-P |
|
@Priceless-P |
Squash the last commit. |
Yeah I will do that. I was waiting for this change to be approved and then squash it since squashing it will not make the changes apparent I guess. Thanks for the suggestion. |
|
This look like a good PR to get in. @krishnavbajoria02 can u rebase on master please? |
Fixes #20