Skip to content

Commit

Permalink
wip add jd protocol message flow diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
plebhash committed Oct 26, 2024
1 parent 81ed88e commit 86f990d
Show file tree
Hide file tree
Showing 3 changed files with 333 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 06-Job-Declaration-Protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,19 @@ xxx todo xxx
| nonce | U32 | Nonce leading to the hash being submitted |
| ntime | U32 | The nTime field in the block header. |
| nbits | U32 | Block header field |

## 6.4 Job Declaration Protocol Message Flow

xxx todo xxx

The `SetupConnection` and `SetupConnection.Success` messages are omitted for simplicity.

Nevertheless, it should be noted that:
- Downstream connects to JDC while setting the `protocol` field of `SetupConnection` to `0` (Mining Protocol).
- JDC connects to JDS while setting the `protocol` field of `SetupConnection` to `1` (Job Declaration Protocol).
- JDC connects to TP while setting the `protocol` field of `SetupConnection` to `2` (Template Distribution Protocol).
- JDC connects to Pool while:
- setting the `protocol` field of `SetupConnection` to `0` (Mining Protocol).
- setting the `REQUIRES_WORK_SELECTION` bit flag of `SetupConnection`.

![](./img/jd_message_flow.png)
Loading

0 comments on commit 86f990d

Please sign in to comment.