<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=54558767" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chimp1984">@chimp1984</a> If you want to test wether or not <em>all</em> instances are serializing the same way you must cache the bytes that came in from the network. Then you know how they were serialized by the peer that sent you the message.</p>
<p>[This] line(<a href="https://github.com/bisq-network/bisq/blob/master/p2p/src/main/java/bisq/network/p2p/network/Connection.java#L713">https://github.com/bisq-network/bisq/blob/master/p2p/src/main/java/bisq/network/p2p/network/Connection.java#L713</a>) line:</p>
<pre><code>protobuf.NetworkEnvelope proto = protobuf.NetworkEnvelope.parseDelimitedFrom(protoInputStream);
</code></pre>
<p>Would have to become something like (pseudo code)</p>
<pre><code>sizeOfNextObject = readProtoSize(protoInputStream);
bytesForNextProtoObject = protoInputStream.readBytes(sizeOfNextObject);
protobuf.NetworkEnvelope proto = protobuf.NetworkEnvelope.parseFrom(bytesForNextObject);
proto.setOriginalBytes(bytesForNextProtoObject)
</code></pre>

<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/3367?email_source=notifications&email_token=AJFFTNSJS63PNS576DJAFVDQNVIBFA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAWOIHA#issuecomment-539812892">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNTPVOUGPARY6X5UYD3QNVIBFANCNFSM4I55W3JQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AJFFTNXCHMHCJBXSES7FNKLQNVIBFA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAWOIHA.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/3367?email_source=notifications\u0026email_token=AJFFTNSJS63PNS576DJAFVDQNVIBFA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAWOIHA#issuecomment-539812892",
"url": "https://github.com/bisq-network/bisq/issues/3367?email_source=notifications\u0026email_token=AJFFTNSJS63PNS576DJAFVDQNVIBFA5CNFSM4I55W3J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAWOIHA#issuecomment-539812892",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>