Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
scripted-diff: stop using the gArgs wrappers #10607
Conversation
fanquake
added the
Refactoring
label
Jun 16, 2017
|
utACK 39faab7 |
|
utACK 39faab7 |
|
Concept ACK. Needs rebase. |
|
Tested ACK 39faab7 |
|
Rebased. |
|
Wait, is this the direction we want to go in, or the opposite? eg i figured we'd want to slowly move towards storing references to gArgs in things that need them, eg as we move towards classes which contain things (CConnman, CChainState, etc) we'd either pass in the options relevant to those objects (ala CConnman's constructor) or pass them the gArgs to avoid the global. |
|
@TheBlueMatt what you mention makes sense to me, but it seems unrelated to this PR, which is just about removing the wrappers (which use the same global). This PR is also good prep-work for storing references to gArgs in classes in that sense. |
|
Hmm, I figured it'd be easier to just sed/gArgs/locallyReferencedArgs/ in files, but I guess it doesnt matter much either way. |
|
One can easily do this after this PR, whereas before, It could be a long time too until someone starts doing this work, and in the meantime, we can avoid the confusion of how to use it, saving review cycles/time. |
|
Needs rebase :-) |
|
Rebased |
|
Rebased. @sipa I'd be glad if this could be merged soon, as it conflicts with other changes very often. |
|
How can I retrigger CI? |
|
@benma I've restarted Travis. |
benma commentedJun 15, 2017
Following #9494, where they were introduced to ease the transition.
The first commit removes the uses, the second commit removes the wrappers themselves.