diff --git a/06-Job-Declaration-Protocol.md b/06-Job-Declaration-Protocol.md index 56a1718..99f6b11 100644 --- a/06-Job-Declaration-Protocol.md +++ b/06-Job-Declaration-Protocol.md @@ -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) \ No newline at end of file diff --git a/img/drawio/jd_message_flow.drawio.xml b/img/drawio/jd_message_flow.drawio.xml new file mode 100644 index 0000000..315e21b --- /dev/null +++ b/img/drawio/jd_message_flow.drawio.xml @@ -0,0 +1,317 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/jd_message_flow.png b/img/jd_message_flow.png new file mode 100644 index 0000000..190a832 Binary files /dev/null and b/img/jd_message_flow.png differ