Use a 64-bit nonce in ping #1463

pull sipa wants to merge 1 commits into bitcoin:master from sipa:fix_1455 changing 1 files +2 −1
  1. sipa commented at 4:33 PM on June 14, 2012: member

    Former code sent '0' as nonce, which was serialized as 32-bit.

    Fixes #1455.

  2. Use a 64-bit nonce in ping
    Former code sent '0' as nonce, which was serialized as 32-bit.
    c971112dfa
  3. luke-jr commented at 4:40 PM on June 14, 2012: member

    Why not just (uint64)0 ?

  4. sipa commented at 4:41 PM on June 14, 2012: member

    Giving the parameter a name is more readable, imho, and I doubt it makes any difference performance-wise.

  5. luke-jr commented at 4:44 PM on June 14, 2012: member

    ACK

  6. gmaxwell commented at 4:48 PM on June 14, 2012: contributor

    ACK, works for me.

  7. gmaxwell referenced this in commit 194ea3186a on Jun 14, 2012
  8. gmaxwell merged this on Jun 14, 2012
  9. gmaxwell closed this on Jun 14, 2012

  10. coblee referenced this in commit 4f1da1acf7 on Jul 17, 2012
  11. suprnurd referenced this in commit 39750439bf on Dec 5, 2017
  12. lateminer referenced this in commit 976f46d6e1 on May 6, 2020
  13. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-19 09:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me