Skip to content

add IT for JD mining mode negotiation#326

Draft
xyephy wants to merge 1 commit intostratum-mining:mainfrom
xyephy:2026/03/jd-mining-modes
Draft

add IT for JD mining mode negotiation#326
xyephy wants to merge 1 commit intostratum-mining:mainfrom
xyephy:2026/03/jd-mining-modes

Conversation

@xyephy
Copy link
Collaborator

@xyephy xyephy commented Mar 11, 2026

Add integration tests for all three JD mining mode scenarios

  • Mode mismatch (JDS requires FullTemplate, JDC asks CoinbaseOnly) -> SetupConnectionError
  • CoinbaseOnly mode: no DeclareMiningJob exchanged, block propagation only from JDC to TP
  • FullTemplate mode: DeclareMiningJob exchanged with JDS

Closes #21

@xyephy xyephy marked this pull request as draft March 11, 2026 09:09
Add integration tests for all three JD mining mode scenarios:
- Mode mismatch (JDS requires FullTemplate, JDC asks CoinbaseOnly) -> SetupConnectionError
- CoinbaseOnly mode: no DeclareMiningJob exchanged, block propagation only from JDC
- FullTemplate mode: DeclareMiningJob exchanged with JDS

Extend start_jds() and start_jdc() to accept mode configuration parameters.
Add set_full_template_mode_required() setter to JDS config.

Closes stratum-mining#21
@xyephy xyephy force-pushed the 2026/03/jd-mining-modes branch from e65262b to a7916ea Compare March 11, 2026 09:14
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.

Test different JD mining modes

1 participant