Refactor fRelayTxes global to CConnman member #10915

pull benma wants to merge 1 commits into bitcoin:master from benma:fRelayTxes changing 5 files +13 −7
  1. benma commented at 7:35 PM on July 23, 2017: none

    No description provided.

  2. benma force-pushed on Jul 23, 2017
  3. dcousens approved
  4. in src/net.h:133 in 6bfe6c4ec7 outdated
     129 | @@ -130,6 +130,7 @@ class CConnman
     130 |  
     131 |      struct Options
     132 |      {
     133 | +        bool m_relay_txes = false;
    


    promag commented at 11:39 PM on July 23, 2017:

    Why the different initial value?


    benma commented at 5:38 AM on July 24, 2017:

    Mostly because of this: #10596 (review)

    Personally, I also slightly prefer to put the correct default here, but it does not matter much as it gets overwritten anyway.

  5. in src/net.h:355 in 6bfe6c4ec7 outdated
     353 | @@ -351,6 +354,7 @@ class CConnman
     354 |      unsigned int nSendBufferMaxSize;
     355 |      unsigned int nReceiveFloodSize;
     356 |  
     357 | +    bool m_relay_txes;
    


    promag commented at 11:44 PM on July 23, 2017:

    Missing initial value?


    benma commented at 5:38 AM on July 24, 2017:

    Is it needed? It gets set during Start() and isn't used before. Or is it a matter of good form?


    promag commented at 11:36 PM on July 24, 2017:

    Some future refactor can call GetRelayTxes (or other) before Start() and there is no way to know/prevent that.


    benma commented at 7:07 AM on July 25, 2017:

    Good point. Done.

  6. promag commented at 11:45 PM on July 23, 2017: member

    Suggestion, rename PR and commit to Refactor fRelayTxes global to CConnman member

  7. fanquake added the label Refactoring on Jul 24, 2017
  8. benma commented at 5:39 AM on July 24, 2017: none

    @promag thx for the review. I rewrote the commit msg as you suggested.

  9. benma force-pushed on Jul 24, 2017
  10. benma renamed this:
    get rid of the fRelayTxes global
    Refactor fRelayTxes global to CConnman member
    on Jul 24, 2017
  11. jonasschnelli added the label P2P on Jul 24, 2017
  12. jonasschnelli assigned theuni on Jul 24, 2017
  13. promag commented at 11:37 PM on July 24, 2017: member

    utACK 9c830bf.

  14. benma force-pushed on Jul 25, 2017
  15. benma commented at 10:36 PM on August 3, 2017: none

    ping @theuni

  16. Refactor fRelayTxes global to CConnman member 0b51af6b28
  17. benma force-pushed on Aug 3, 2017
  18. benma commented at 10:39 PM on August 3, 2017: none

    Rebased.

  19. theuni commented at 10:51 PM on August 3, 2017: member

    Err.. I'd rather not, as this really needs to be a member of the message processor instead. We'll likely start moving in that direction after #10756 goes in. @TheBlueMatt agreed?

  20. TheBlueMatt commented at 10:56 PM on August 3, 2017: member

    Yea, we should be moving fRelayTxes towards net_processing, not net, sorry for the churn in this area.

  21. benma closed this on Sep 11, 2017

  22. 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-22 06:15 UTC

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