Fixes how the number of connections icon is shown. Now connect_4 icon i... #1208

pull ghost wants to merge 1 commits into bitcoin:master from changing 2 files +13 −9
  1. ghost commented at 5:08 AM on May 6, 2012: none

    ...s used when there are MAX_OUTBOUND_CONNECTIONS connections. Also MAX_OUTBOUND_CONNECTIONS is no longer static. This had to be done so that it could be made extern for reading in bitcoingui.cpp, though this hopefully will not hurt anything else.

  2. Fixes how the number of connections icon is shown. Now connect_4 icon is used when there are MAX_OUTBOUND_CONNECTIONS connections. Also MAX_OUTBOUND_CONNECTIONS is no longer static. This had to be done so that it could be made extern for reading in bitcoingui.cpp, though this hopefully will not hurt anything else. 5e3862b176
  3. gmaxwell commented at 5:16 AM on May 6, 2012: contributor

    I don't think we want it showing full bars when a user only has the maximum outbound connections. Not having full bars is pretty much the only UI incentive we create for people to get their inbound connections working.

  4. laanwj commented at 5:31 AM on May 6, 2012: member

    @gmaxwell nails it, the current behavior is intended. This does not "fix" anything.

  5. laanwj commented at 6:23 AM on May 6, 2012: member

    The idea is OK though, as it's more general, in that when MAX_OUTBOUND_CONNECTIONS changes the icon will still be correct.

    But make sure that the "full" icon only shows when there are more than the maximum number of outbound connections.

    Alternative option would be to track the number of outgoing and incoming connections separately and show a special icon when there are incoming connections.

    Code comments:

    • Don't use a shortcut to get MAX_OUTBOUND_CONNECTIONS from the core to the UI. You should expose it on the ClientModel interface, like the other counts such as number of blocks and number of connections.
  6. ghost commented at 3:24 PM on May 6, 2012: none

    I was under the impression that this was only outbound connections. Now that I have turned off my firewall, I see that I have more than 8 connections. Maybe the tool-tip could be changed to indicate inbound and outbound connections with a hint about port forwarding if there are no inbound connections?

  7. laanwj commented at 4:13 PM on May 6, 2012: member

    Yes, you could also do it the other way around and show a warning when there are no inbound connections. Many torrent clients do it that way.

  8. gmaxwell commented at 6:11 PM on May 6, 2012: contributor

    I'd prefer to not bludgeon people too much about inbound connections. Basically I want to encourage people to get inbound working when its easy for them to do so, but not have them worry about it if it's hard... and I certainly don't want to deal with a bunch of tech support burden. 'zomg my inbound isn't working'

  9. laanwj commented at 6:15 PM on May 6, 2012: member

    Right, viewed like that, it's fine the way it is. It's visible but very subtle. Closing the issue.

  10. laanwj closed this on May 6, 2012

  11. suprnurd referenced this in commit 8c16880b15 on Dec 5, 2017
  12. lateminer referenced this in commit 3dfafa84c2 on Jan 22, 2019
  13. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

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-17 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me