-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Replace std::string PaymentServer::mapNetworkIdToName and CChainParams::... #4333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/rpcmisc.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't change the getinfo call, too many people rely on its current behavior. As it's a random grabbag of information from different parts, it's going to be deprecated at some point in favor of the more specific get*info calls.
|
Can you rebase this onto #4326? |
|
Rebased on top of Diapolo:clientmodel_networkname |
|
@jtimon Yes, |
|
Oh, I was coding it and didn't read you. So should I just cancel the last commit then? |
|
Yes. We can remove them at a later time when there is a a RPC overhaul with other backwards-compat breaking changes. |
|
Adding the "network" field doesn't seem backwards incompatible, but it allows people to start using that instead of "testnet", which could be declared deprecated or something to encourage people to move already in preparation for that RPC overhaul. Thoughts? |
|
I'm fine with adding it to |
|
Perhaps 0.10 is a good release for killing getinfo :)? |
|
@Diapolo I'd rather wait another major release (eg: 0.10 deprecates it, 0.11 removes it). But I don't want that discussion now. |
|
Ok, done. I didn't know getinfo was meant to die. |
|
Well |
|
oh, I see. Probably I should use "chain" instead of "network" and the help could be uniform too. but the change in #4326 doesn't seem backwards compatible (it's going to return "test" instead of "testnet3" [by the way, that shouldn't had changed in bip70 given that this "chain" was here already]). Thoughts? |
|
@jtimon |
|
Good. Then I will use chain as well, and correct the help info in getblockchaininfo |
|
Needs rebase |
|
Rebased |
|
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/f6984e814134d2383e1353ce8aa951649f5fcbd2 for binaries and test log. |
related to #4326 and #3824