<p style="color:#FF4433">Error connecting to host: <code>{%s p.Check.Error %}</code>.</p>
{% if p.Check.Error == "disconnected before finishing handshake" %}
<p>This peer is likely running on a different SideChain or is running an incompatible P2Pool software version. Try a different Observer or verify your software.</p>
{% elseif p.Check.Error == "not_valid_ip" %}
<p>The IP Address you are trying to connect to is not valid or accepted on this tool.</p>
{% elseif p.Check.Error == "not_valid_port" %}
<p>The Port you are trying to connect to is not valid or accepted on this tool.</p>
{% if p.Check.Error == "disconnected before finishing handshake" %}
<tr><td colspan="6">This peer is likely running on a different SideChain or is running an incompatible P2Pool software version. Try a different Observer or verify your software.<br/>Alternatively this peer could have banned the Observer node and we cannot connect properly.</td></tr>
{% if ((p.YourTipRaw.Main.Coinbase.GenHeight < (p.OurTip.MainHeight-3)) || (p.YourTipRaw.Main.Coinbase.GenHeight > (p.OurTip.MainHeight+3))) %}
<tr><td colspan="6" style="font-weight: bold; color:#FF4433">Peer Monero node is on a wildly different Monero height than Observer.<br/>Either peer node is lagging behind or your monerod is not up to sync.</td></tr>
<tr><td colspan="6" style="font-weight: bold; color:#FF4433">Could not find Peer SideChain Tip on Observer.<br/>Either peer node is lagging behind or you are on a forked SideChain.</td></tr>
<tr><td colspan="6" style="font-weight: bold">The peer is connectable and on the SideChain.<br/>Peer SideChain Tip is on a wildly different SideChain height than Observer.<br/>Either peer node is lagging behind or your p2pool is not up to sync.</td></tr>
{% else %}
<tr><td colspan="6" style="font-weight: bold">The peer is connectable and on the SideChain.<br/>{% if p.OurTip.TemplateId == p.YourTipRaw.SideTemplateId(p.Context().Consensus) %}The peer Tip matches exactly the Observer Tip.{% else %}Verify Peer SideChain Height against Observer SideChain Height, so it's not consistently different.{% endif %}</td></tr>
{% endif %}
<tr><th colspan="6"> </th></tr>
<tr><td colspan="6">
{%= TemplatePoolBlock(p.Context(), p.YourTipRaw, "Peer Tip Share information") %}