[Testing] Include fRelay in mininode version messages #8894

pull jnewbery wants to merge 1 commits into bitcoin:master from jnewbery:mininode-relay-field changing 1 files +20 −6
  1. jnewbery commented at 6:31 PM on October 5, 2016: member

    In protocol version 70001, an additional field fRelay was added to the version message (see https://github.com/bitcoin/bips/blob/master/bip-0037.mediawiki#extensions-to-existing-messages ).

    Mininode does not currently include the fRelay field in its version messages, and so is technically sending malformed version messages. This PR fixes mininode's version messages.

  2. fanquake added the label Tests on Oct 5, 2016
  3. MarcoFalke commented at 9:39 AM on October 6, 2016: member

    technically sending malformed version message

    Are you sure that the field is required? The BIP implies that the field is optional:

    If missing or true, no change in protocol behaviour occurs.

  4. jnewbery commented at 12:47 PM on October 6, 2016: member

    @MarcoFalke Yes - you're correct. I didn't read the BIP closely enough.

    Still, I think mininode should specify the fRelay field. Even better: we should have a bloom filter test in qa which explicitly tests the field.

  5. laanwj commented at 10:57 AM on October 8, 2016: member

    It makes sense for the test framework to support this. utACK https://github.com/bitcoin/bitcoin/pull/8894/commits/d7bf55c3f3ac4466885c1a99aecdf5ed24b27bcf

  6. MarcoFalke commented at 11:16 AM on October 8, 2016: member

    Even better: we should have a bloom filter test in qa which explicitly tests the field.

    Sure.

    Please also make sure to deserialize nRelay and mention it in the repr.

  7. jonasschnelli commented at 4:33 PM on October 8, 2016: contributor

    Agree with @MarcoFalke, you should extend the change to the deserialization method.

  8. jnewbery renamed this:
    [Testing] Include fRelay in mininode version messages
    [WIP] [Testing] Include fRelay in mininode version messages
    on Oct 11, 2016
  9. MarcoFalke commented at 5:35 PM on November 7, 2016: member

    @jnewbery Are you still working on this?

  10. jnewbery force-pushed on Nov 9, 2016
  11. jnewbery force-pushed on Nov 9, 2016
  12. jnewbery force-pushed on Nov 9, 2016
  13. Fix mininode version message format e5d682faa3
  14. jnewbery force-pushed on Nov 9, 2016
  15. jnewbery commented at 2:35 AM on November 9, 2016: member

    @MarcoFalke : deserialization and repr methods updated.

  16. MarcoFalke renamed this:
    [WIP] [Testing] Include fRelay in mininode version messages
    [Testing] Include fRelay in mininode version messages
    on Nov 9, 2016
  17. MarcoFalke commented at 7:36 PM on November 9, 2016: member

    Thanks, utACK e5d682faa3e8bdb7be2ea1d4b9835ee563a351f4

  18. laanwj merged this on Nov 9, 2016
  19. laanwj closed this on Nov 9, 2016

  20. laanwj referenced this in commit faec09bc7f on Nov 9, 2016
  21. jnewbery deleted the branch on Nov 10, 2016
  22. codablock referenced this in commit 56ed800843 on Jan 15, 2018
  23. andvgal referenced this in commit 3be16de29f on Jan 6, 2019
  24. CryptoCentric referenced this in commit 66de8c7872 on Feb 24, 2019
  25. MarcoFalke 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-30 12:15 UTC

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