No description provided.
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-
benma commented at 7:35 PM on July 23, 2017: none
- benma force-pushed on Jul 23, 2017
- dcousens approved
-
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.
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) beforeStart()and there is no way to know/prevent that.
benma commented at 7:07 AM on July 25, 2017:Good point. Done.
promag commented at 11:45 PM on July 23, 2017: memberSuggestion, rename PR and commit to
Refactor fRelayTxes global to CConnman memberfanquake added the label Refactoring on Jul 24, 2017benma force-pushed on Jul 24, 2017benma renamed this:get rid of the fRelayTxes global
Refactor fRelayTxes global to CConnman member
on Jul 24, 2017jonasschnelli added the label P2P on Jul 24, 2017jonasschnelli assigned theuni on Jul 24, 2017promag commented at 11:37 PM on July 24, 2017: memberutACK 9c830bf.
benma force-pushed on Jul 25, 2017Refactor fRelayTxes global to CConnman member 0b51af6b28benma force-pushed on Aug 3, 2017benma commented at 10:39 PM on August 3, 2017: noneRebased.
theuni commented at 10:51 PM on August 3, 2017: memberErr.. 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?
TheBlueMatt commented at 10:56 PM on August 3, 2017: memberYea, we should be moving fRelayTxes towards net_processing, not net, sorry for the churn in this area.
benma closed this on Sep 11, 2017DrahtBot locked this on Sep 8, 2021ContributorsLabels
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
More mirrored repositories can be found on mirror.b10c.me