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.4;
nodesep = 0.1;

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

ibd -> getblocks:f1 -> sync;

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

getblocks [ shape="plaintext", label=<
    <table border="2" cellborder="1" cellpadding="1">
      <tr>
        <td colspan="4" port="f1" border="0" cellpadding="4"><b>GetHeaders 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" cellpadding="4"><i>Command</i><br/><font face="courier">getheaders</font></td>
        <td border="1"><i>Size</i><br/><font face="courier">69</font></td>
        <td border="1"><i>Checksum</i><br/><font face="courier">f5fcbcad</font></td>
      </tr>

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

      <tr>
        <td colspan="2"><i>Protocol Version</i><br /><font face="courier">70208</font></td>
        <td colspan="2"><i>Header Hash Count</i><br /><font face="courier">1</font></td>
      </tr>

      <tr>
        <td colspan="4"><i>Header Hashes (Highest-Height First)</i><br /><font face="courier">b67a40f3cd5804...140b59fd0f0000</font></td>
      </tr>

      <tr>
        <td colspan="4"><i>Stopping Hash (Zero Is "No Stop")</i><br /><font face="courier">00000000000000...00000000000000</font></td>
      </tr>

    </table>>];

label = "First getheaders message sent from Initial Blocks Download (IBD) node"
}
