p2p: comment out unused MSG_FILTERED_WITNESS_BLOCK #19721

pull adamjonas wants to merge 1 commits into bitcoin:master from adamjonas:2020_8_MSG_FILTERED_WITNESS_BLOCK_comment changing 1 files +3 −1
  1. adamjonas commented at 2:02 pm on August 14, 2020: member

    Commenting out and adding a note to unused MSG_FILTERED_WITNESS_BLOCK defined in BIP144.

    There was an attempt to make use of this in #10350, but it was closed due to lack of support. (h/t sdaftuar for pointing to the PR and jnewbery for the idea)

  2. doc: comment out and add annotation to unused MSG_FILTERED_WITNESS_BLOCK 4792cad88c
  3. fanquake added the label Docs on Aug 14, 2020
  4. fanquake removed the label Docs on Aug 14, 2020
  5. DrahtBot added the label Docs on Aug 14, 2020
  6. DrahtBot added the label P2P on Aug 14, 2020
  7. practicalswift commented at 3:08 pm on August 14, 2020: contributor

    ACK 4792cad88c5c3c93e639a051df779230ee817396

    0$ git grep MSG_FILTERED_WITNESS_BLOCK
    1src/protocol.h:    MSG_FILTERED_WITNESS_BLOCK = MSG_FILTERED_BLOCK | MSG_WITNESS_FLAG,
    
  8. jonatack commented at 3:22 pm on August 14, 2020: member
    ACK, this change was suggested in #19610 (review)
  9. in src/protocol.h:402 in 4792cad88c
    396@@ -397,7 +397,9 @@ enum GetDataMsg : uint32_t {
    397     MSG_CMPCT_BLOCK = 4,                              //!< Defined in BIP152
    398     MSG_WITNESS_BLOCK = MSG_BLOCK | MSG_WITNESS_FLAG, //!< Defined in BIP144
    399     MSG_WITNESS_TX = MSG_TX | MSG_WITNESS_FLAG,       //!< Defined in BIP144
    400-    MSG_FILTERED_WITNESS_BLOCK = MSG_FILTERED_BLOCK | MSG_WITNESS_FLAG,
    401+    // MSG_FILTERED_WITNESS_BLOCK is defined in BIP144 as reserved for future
    402+    // use and remains unused.
    403+    // MSG_FILTERED_WITNESS_BLOCK = MSG_FILTERED_BLOCK | MSG_WITNESS_FLAG,
    


    luke-jr commented at 6:13 pm on August 14, 2020:
    It’s supported by Bitcoin Knots, so I’m not sure “unused” is clear enough here… Maybe “remains unsupported by Bitcoin Core”?

    jonatack commented at 10:07 am on August 15, 2020:
    I’ll need to rebase #19610 after this change so can touch it up there if needed.
  10. luke-jr changes_requested
  11. fanquake removed the label Docs on Aug 15, 2020
  12. fanquake requested review from jnewbery on Aug 15, 2020
  13. jnewbery commented at 9:50 am on August 15, 2020: member

    Obvious ACK 4792cad88c5c3c93e639a051df779230ee817396

    Thanks @adamjonas!

  14. jnewbery approved
  15. MarcoFalke commented at 10:04 am on August 15, 2020: member
    cr ACK 4792cad88c5c3c93e639a051df779230ee817396 good to keep it around in a comment to avoid accidental future re-assignment
  16. MarcoFalke added the label Docs on Aug 15, 2020
  17. fanquake removed the label Docs on Aug 15, 2020
  18. fanquake commented at 10:08 am on August 15, 2020: member
    This is not a documentation change. It’s changing code.
  19. MarcoFalke renamed this:
    doc: comment out unused MSG_FILTERED_WITNESS_BLOCK
    p2p: comment out unused MSG_FILTERED_WITNESS_BLOCK
    on Aug 15, 2020
  20. MarcoFalke commented at 10:16 am on August 15, 2020: member

    This is not a documentation change. It’s changing code.

    Ok, adjusted title

  21. MarcoFalke added the label Refactoring on Aug 15, 2020
  22. theStack approved
  23. fanquake merged this on Aug 18, 2020
  24. fanquake closed this on Aug 18, 2020

  25. sidhujag referenced this in commit 61201a625c on Aug 18, 2020
  26. adamjonas deleted the branch on Aug 25, 2020
  27. DrahtBot locked this on Feb 15, 2022

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: 2024-07-01 10:13 UTC

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