digraph {
// This file is licensed under the MIT License (MIT) available on
// http://opensource.org/licenses/MIT.

size=6.25;
rankdir=LR
splines = "false";
ranksep = 0.2;
nodesep = 0.1;

edge [ penwidth = 1.75, fontname="Sans" ]
node [ penwidth = 1.75, shape = "box", fontname="Sans"]
graph [ penwidth = 1.75, fontname="Sans" ]

ibd -> inv:f1 -> sync [ dir = "back" ];

ibd [ label = "IBD\nNode", shape="none" ];
sync [ label = "Sync\nNode", shape="none" ];

inv [ shape="plaintext", label=<
    <table border="2" cellborder="1">
      <tr>
        <td colspan="4" port="f1" border="0" cellpadding="4"><b>Headers Message</b></td>
      </tr>

      <tr>
        <td colspan="4" border="0"><i>Message Header</i></td>
      </tr>

      <tr>
        <td border="1"><i>Start String</i><br/><font face="courier">bf0c6bbd</font></td>
        <td border="1"><i>Command</i><br/><font face="courier">headers</font></td>
        <td border="1"><i>Size</i><br/><font face="courier">162003</font></td>
        <td border="1"><i>Checksum</i><br/><font face="courier">a65b2b77</font></td>
      </tr>

      <tr>
        <td colspan="4" border="0"><i>Payload</i></td>
      </tr>

      <tr>
        <td colspan="4"><i>Number Of Headers (Max 2,000 In Reply To GetHeaders) </i><br /><font face="courier">2000</font></td>
      </tr>

      <tr>
        <td colspan="4">
        <table border="0">
          <tr>
            <td><i>80-byte Block Headers + 0x00 (The Empty Tx Count)</i></td>
          </tr>

		  // Block headers not updated for Dash

          <tr>
            <td><font face="courier">010000006fe28cab...ff001d01e3629900</font></td>
          </tr>
          <tr>
            <td><font face="courier">010000004860eb18...ff001d08d2bd6100</font></td>
          </tr>
          <tr>
            <td colspan="2"><i>...............1,998 more block headers...............</i></td>
          </tr>

        </table>
        </td>
      </tr>
    </table>>];

label = "First headers message reply sent to Initial Blocks Download (IBD) node"
}
