Add sample address to NetworkStyles #5479

pull paveljanik wants to merge 1 commits into bitcoin:master from paveljanik:qt_sampleaddress changing 1 files +1 −1
  1. paveljanik commented at 8:19 PM on December 15, 2014: contributor

    Label: GUI GUI application displays sample address in the Pay To input box. It displays main net address even when running on testnet: screen shot 2014-12-15 at 20 34 49 This PR adds sampleAddress to the NetworkStyles - it allows for different address for every network.

    What address should I use for testnet and regtest?

  2. laanwj commented at 8:14 AM on December 16, 2014: member

    Is this important? Why would anyone use that address? I'm not sure the test address should actually work, what if people manage to accidentally send coins to it.

  3. laanwj added the label GUI on Dec 16, 2014
  4. jonasschnelli commented at 8:43 AM on December 16, 2014: contributor

    IMO we should remove the/any sample addresses. If someone uses bitcoin-qt he/she should know by then what a bitcoin address is.

  5. paveljanik commented at 9:01 AM on December 16, 2014: contributor

    General public is using it as a wallet... Sample address is important because they paste real addresses it from e.g. mail and want to see what to paste in. Distinguishing main and testnet is IMO important (we already do menu bar, icon etc.). Sample address is a hint only, can't be entered by hand, can't be pasted from the hint text itself.

  6. paveljanik commented at 9:12 AM on December 16, 2014: contributor

    @jonasschnelli People download .dmg from our site and run it. They do not know how it is named. They think "It is Bitcoin!". Sample address helps them to understand what to do.

  7. laanwj commented at 9:16 AM on December 16, 2014: member

    @jonasschnelli I also voted for keeping an example address here the last time that this came up. It has been removed from many other places.

    Testnet and mainnet addresses look similar enough to the casual observer though. Just a funny string of numbers and letters. I still don't see the point of this pull.

  8. jonasschnelli commented at 9:18 AM on December 16, 2014: contributor

    The PR is better then the current situation. But i thought we not removing the whole sample address thing. IMO it makes no sense because if someone manage to send coins, he has to manage to receive coins and also catch up with the blockchains head (20GB?). By then someone should know what a bitcoin address is. I would recommend to remove the sample address entirely because unless other-sample address like a sample email (john@doo.com), bitcoin-sample addresses are not clearly recognizable in the first view.

  9. laanwj commented at 9:21 AM on December 16, 2014: member

    Having an example base58 string there helps with pattern matching. Ie "so this funny string should go here". That's the whole reason it's there, no need to overdesign or overcomplicate this.

  10. paveljanik force-pushed on Dec 16, 2014
  11. paveljanik force-pushed on Dec 16, 2014
  12. Use different sample address for non-main networks. bd20117235
  13. paveljanik force-pushed on Dec 16, 2014
  14. paveljanik commented at 3:35 PM on December 16, 2014: contributor

    Complete rework - one liner. Main net address is unchanged. For non-mainnet, the same address with prefix m is used.

  15. laanwj commented at 5:15 PM on December 16, 2014: member

    Matching on the name of the network is not good! The old solution of putting it on style was the right way to go. Although still don't think this is necessary.

  16. luke-jr commented at 8:40 PM on December 16, 2014: member

    I propose we have an example that counters the common mis-assumption that all addresses begin with 1. Thoughts on using a P2SH address for a null script (eg, 3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy on mainnet)?

  17. paveljanik commented at 9:51 PM on December 16, 2014: contributor

    What about completely removing the "(e.g. ... )" part - see the screenshot above? This would solve my problem with this too...

  18. laanwj commented at 10:27 AM on December 17, 2014: member

    As I said, having a base58 string there helps pattern matching. I don't care which one, but we're keeping it. Going to close this as it's going in circles.

  19. laanwj closed this on Dec 17, 2014

  20. paveljanik deleted the branch on Dec 17, 2014
  21. MarcoFalke 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-21 18:15 UTC

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