<p></p>
<p>In some cases BitcoinJ throws a <code>ProtocolException</code>, crashing the connection, because it receives an alert message during the handshake [0]. The alert message is sent because Bitcoin Core >= 0.14.0 is telling us to upgrade to atleast version 70012 [1][2].</p>
<p>It would be difficult to predict the consequences of changing the advertised version. We could just have BitcoinJ always ignore alert messages. It seems that our fork already is attempting to do that, and the handshake case is an oversight. I've discovered this when testing a local Bitcoin node that is set to prune. So far this is the only case where I've received an alert message during handshake. I couldn't discover why.</p>
<p>[0] <a href="https://github.com/bisq-network/bitcoinj/blob/bisq_0.14.7/core/src/main/java/org/bitcoinj/core/Peer.java#L474">https://github.com/bisq-network/bitcoinj/blob/bisq_0.14.7/core/src/main/java/org/bitcoinj/core/Peer.java#L474</a><br>
[1] <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/bitcoin/bitcoin/commit/8ff8d219c3d9a0b6f604bb99ca4a27ad77cdb69b/hovercard" href="https://github.com/bitcoin/bitcoin/commit/8ff8d219c3d9a0b6f604bb99ca4a27ad77cdb69b">bitcoin/bitcoin@<tt>8ff8d21</tt></a><br>
[2] <a href="https://en.bitcoin.it/wiki/Alert_system" rel="nofollow">https://en.bitcoin.it/wiki/Alert_system</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/issues/4080">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNSNBTZUKQRIJIIAQ4LRITT3RANCNFSM4LQ67JFQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNWVAUUV6I666HEK7HDRITT3RA5CNFSM4LQ67JF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IXGQUQQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/issues/4080",
"url": "https://github.com/bisq-network/bisq/issues/4080",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>