Skip to content

Conversation

benma
Copy link

@benma benma commented Mar 1, 2017

An effort to reduce the size of AppInitMain().

An effort to reduce the size of AppInitMain().
@benma
Copy link
Author

benma commented Mar 9, 2017

Rebased.

@dcousens
Copy link
Contributor

concept ACK

@laanwj
Copy link
Member

laanwj commented Mar 10, 2017

Ping @theuni (as he wrote the Connman code).

@laanwj laanwj requested a review from theuni March 10, 2017 07:48
Copy link
Member

@theuni theuni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mm, I like the consolidation, but this kinda confuses the interface and gets in the way of the clean instantiation. The things currently done before starting connman are actually just config options that haven't been moved in yet.

What I'd much prefer (just hadn't gotten around yet) is to add:
CConnman::Options::vWhitelist
CConnman::Options::vBinds
CConnman::Options::vSeedNodes

I think we can combine the approaches by keeping the creation as-is, and having InitConnman() parse the config options and return a CConnman::Options.

@benma
Copy link
Author

benma commented May 27, 2017

@theuni

Thanks, that makes a whole lot of sense. I started the process with vSeedNodes in #10467, and will revisit this PR once the rest of the initialization is cleaned up.

@ryanofsky
Copy link
Contributor

#10496 seems to be the next PR in this progression.

@laanwj
Copy link
Member

laanwj commented Jun 5, 2017

Needs rebase after #10467 (I guess?)

@benma
Copy link
Author

benma commented Nov 11, 2017

Might revisit with a new PR some day.

@benma benma closed this Nov 11, 2017
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants