Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion COVERAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ No scenarios yet.
|---|---|---|---|---|---|---|
| M-OEMCS-1 | Ω1 | Θ1 | `.Success.request_id` doesn't echo the request | [§5.3.5](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#535-openextendedminingchannelsuccess-server---client) `request_id` "Client-specified request ID from OpenExtendedMiningChannel message, so that the client can pair responses with open channel requests" | Random `request_id`s; assert pairing | — |
| M-OEMCS-2 | Ω1 | Θ1 | `channel_id` reused for a second channel | [§5.2](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#52-channel) "There MUST NOT be two Channels with the same ID" | Open N channels; assert uniqueness | — |
| M-OEMCS-3 | Ω1 | Θ1 | Extended channel: `extranonce_size` smaller than requested `min_extranonce_size`, without error | [§5.3.4](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#534-openextendedminingchannel-client---server) "Server MUST satisfy the `min_extranonce_size` or respond with `OpenMiningChannel.Error`" / [§5.3.5](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#535-openextendedminingchannelsuccess-server---client) | Assert `extranonce_size >= min_extranonce_size` (or explicit error) | `OpenMiningChannel.Error` |
| M-OEMCS-3 | Ω1 | Θ1 | Extended channel: `extranonce_size` smaller than requested `min_extranonce_size`, without error | [§5.3.4](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#534-openextendedminingchannel-client---server) "Server MUST satisfy the `min_extranonce_size` or respond with `OpenMiningChannel.Error`" / [§5.3.5](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#535-openextendedminingchannelsuccess-server---client) | Request `min_extranonce_size = 4, 10, 32` on fresh connections; assert `extranonce_size >= min_extranonce_size` on each `.Success` (or explicit error) | `OpenMiningChannel.Error` |
| M-OEMCS-4 | Ω1 | Θ1 | Channels in the same group have different full extranonce sizes | [§5.2.3](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#523-group-channel) "All channels under the same Group Channel (Extended and Standard) MUST have the exact same size for the full Extended Extranonce", [§5.1.2.1](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#5121-extended-extranonce) | Cross-check full extranonce sizes within group (only if the server uses groups) | `SetGroupChannel`, `NewExtendedMiningJob` |
| M-OEMCS-5 | Ω1 | Θ1 | Same extranonce space assigned to two extended channels → overlapping search space, duplicate work | [§5.1](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#51-job) "Mining servers MUST assign a unique subset of the search space to each mining device" | Open 2+ channels; compare prefixes | — |
| M-OEMCS-6 | Ω1 | Θ1 | Server negotiates `extranonce_size > 32`, making a valid `SubmitSharesExtended` impossible because `extranonce` is `B0_32` | [§5.3.4](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#534-openextendedminingchannel-client---server) / [§5.3.5](https://github.com/stratum-mining/sv2-spec/blob/main/05-Mining-Protocol.md#535-openextendedminingchannelsuccess-server---client) "extranonce_size MUST be at most 32 bytes" | Request `min_extranonce_size = 33`; assert `OpenMiningChannel.Error`. For successful opens, assert `extranonce_size <= 32` | `OpenMiningChannel.Error` |
Expand Down
135 changes: 50 additions & 85 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading