bitcoin:testnet-address URIs don't work #2301

issue gavinandresen opened this issue on February 12, 2013
  1. gavinandresen commented at 10:46 PM on February 12, 2013: contributor

    If a bitcoin: URI is to a testnet address, then a -testnet version of bitcoin should handle it (or should be launched).

    I create a little test page at http://www.skypaint.com/bitcoin/uritest.html

  2. ghost assigned gavinandresen on Feb 12, 2013
  3. laanwj commented at 7:01 AM on February 13, 2013: member

    Maybe we need a different uri prefix for testnet? Discriminating on the internals of the address is going to be fragile at best, as the browser logic cannot handle it.

    edit: hm I suppose it's also possible to determine/set the testnet flag in the URL handling logic, though I hardly think that fits within the principle of least surprise. Implications of wrongly starting the testnet client for real transactions or the real client for testnet transactions could be serious, especially for non-developers. It may be a good idea but I have to think about it.

  4. gavinandresen commented at 2:48 PM on February 13, 2013: contributor

    I taught the URL handling logic to handle testnet/non-testnet addresses, and it should work on all platforms except OSX: https://github.com/gavinandresen/bitcoin-git/tree/testneturis

    The logic is basically: If given a testnet bitcoin:address on the command-line: Try to pass it over a testnet-specific LocalServer socket If no testnet LocalServer already running, continue startup as -testnet

    That doesn't work on OSX because URL handling is always done via AppleEvents. Even a separate MIME type wouldn't work on OSX, unless we shipped two different flavors of the Bitcoin-Qt.app binary (testnet/main net).

  5. gavinandresen referenced this in commit fb8ada5c95 on Feb 13, 2013
  6. gavinandresen referenced this in commit e89efd8c3b on Feb 22, 2013
  7. gavinandresen referenced this in commit 8ffca4f35f on Mar 2, 2013
  8. gavinandresen referenced this in commit 769368ebda on Mar 22, 2013
  9. gavinandresen commented at 5:40 AM on October 29, 2013: contributor

    Closing; payment protocol fixed for all platforms except OSX (because of the way OSX starts up apps we can't fix).

  10. gavinandresen closed this on Oct 29, 2013

  11. DrahtBot locked this on Sep 8, 2021
Labels

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

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