-
Notifications
You must be signed in to change notification settings - Fork 38.7k
cli: Display all proxies in -getinfo #22959
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
|
Concept ACK Since i2p is added in Bitcoin Core which uses a different proxy, it's better if both are shared in
|
theStack
left a comment
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.
Concept ACK
60502df to
869ad51
Compare
|
Concept ACK |
|
Concept ACK. Showing only one proxy is an artifact from the old Suggestion: maybe add the networks each proxy is used for, example format |
@laanwj Is this something similar to checkboxes we have in GUI which I was trying to remove in bitcoin-core/gui#421? If yes, this is confusing for me TBH considering the changes and discussions we had for #22834 Also the comments:
|
869ad51 to
7d6f0fa
Compare
|
@laanwj Thanks for the suggestion. 869ad51 to 7d6f0fa: Updated the PR to display the networks each proxy is used for. |
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.
Tested almost-ACK. The order of proxies is sorted by proxy value; maybe maintain the original order printed by getnetworkinfo "networks".
7d6f0fa to
dedbc9d
Compare
dedbc9d to
7c3712f
Compare
|
7c3712f changes: |
|
Thank you! Will test.
Tested ACK 7c3712f
This was specifically about names, so connecting to a DNS seed, for example, or a node passed as argument. For P2P peers it is known what the network is because this information is gossiped along with the address itself. This is what the information here is about. |
|
utACK 7c3712f |
7c3712f cli: Display all proxies in -getinfo (klementtan) Pull request description: **Changes**: Display all proxies in `-getinfo` **Motivation**: * Currently `-getinfo` only return the proxy of the first network in `getnetworkinfo`. * This PR will display all unique proxies in `getnetworkinfo` as suggested in bitcoin#17314 (comment) >List all proxies, at least if they're different from the IPv4 one  **Testing**: You can verify this change by starting bitcoind with ```shell ./src/bitcoind -signet --proxy=127.0.0.1:9050 --i2psam=127.0.0.1:7656 ``` Execute `-getinfo` ```shell ./src/bitcoin-cli -signet -getinfo ``` ACKs for top commit: laanwj: Tested ACK 7c3712f prayank23: utACK bitcoin@7c3712f Tree-SHA512: 9eae97866220227f30ca4585f52799fa66fc1135047d869c4aabe598aee1a9414cb9e1c4a8d19165e52d65005f3c6d4bcc37463ace0ddb44389dfbcd4ca74095


Changes: Display all proxies in
-getinfoMotivation:
-getinfoonly return the proxy of the first network ingetnetworkinfo.getnetworkinfoas suggested in Re-thinkingbitcoin-cli -getinfo#17314 (comment)Testing:
You can verify this change by starting bitcoind with
Execute
-getinfo