-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: write handshake nonce correctly #129
fix: write handshake nonce correctly #129
Conversation
The `value` and `offset` args to `Buffer.writeUInt32LE` vs `DataView.setUint32` are the other way round. Fixes a bug introduced in ChainSafe#125 where we were using the nonce value as an offset and writing `4` rather than writing the nonce value at offset `4`.
Codecov Report
@@ Coverage Diff @@
## master #129 +/- ##
=======================================
Coverage 88.59% 88.59%
=======================================
Files 16 16
Lines 1841 1841
Branches 248 248
=======================================
Hits 1631 1631
Misses 210 210
Continue to review full report at Codecov.
|
I have no idea how you manage to pinpoint this but good job 👏🏻 👏🏻 👏🏻 👏🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
@wemeetagain mind shipping a patch release with this? It seems we need it to fix CI: https://app.circleci.com/pipelines/github/ipfs/go-ipfs/6010/workflows/3f9c17d0-e388-43f8-8dee-0a7789c5928f/jobs/65407
|
Released 5.0.2 |
The
value
andoffset
args toBuffer.writeUInt32LE
vsDataView.setUint32
are the other way round.Fixes a bug introduced in #125 where we were using the nonce value as an offset and writing
4
rather than writing the nonce value at offset4
.