Skip to content
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

Drop support for BCH CashAddr #250

Merged
merged 3 commits into from
Dec 13, 2022
Merged

Conversation

PiRK
Copy link
Collaborator

@PiRK PiRK commented Dec 13, 2022

This PR removes the support for the BCH CashAddr format in the UI.
We just keep the ability to convert adresses to/from this format for the sake of the address conversion tool.

Drop support for "bitcoincash:" URIs.

Also remove a few remaining mentions of Electron Cash and Bitcoin Cash in doc, strings and comments.

The only remaining place to be updated after this is the README file in the ledger plugin.
The other remaining mentions of Bitcoin Cash are legit (references to the BCH fork in 2017, BCH derivation path...)

Test plan:

Check that it now says "eCash address" in the output of `./electrum-abc rmrequest -h`
This means users can no longer display addresses in the "bitcoincash:..." format, and we no longer open "bitcoincash:" URIs.

Users can still paste BCH addresses in the address converter, or convert eCash & legacy addresses to BCH addresses.

Test plan:
Modify config file to `"address_format": "CashAddr BCH"` and bump version in version.py. Check that the program starts successfully with ecash: addresses in the GUI  and updates the config file to  `"address_format": "CashAddr"`.
@PiRK PiRK merged commit 58a7753 into Bitcoin-ABC:master Dec 13, 2022
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jan 23, 2024
Summary:
After this diff, bch cash addresses are no longer supported in the "Pay to" field, in BIP21 URIs or any method of entering an address that uses `Address.from_string` without setting `support_arbitrary_prefix=True`.

The address converter in the GUI still support any prefix. This diff also makes the command line / RPC `addressconvert` command support arbitrary prefixes.
But now we no longer support bch addresses without an explicit prefix.

This diff also incidentally fixes support for "ectest:..." URIs when running in testnet mode. Previously `web.parseable_schemes` did not correctly account for the net parameter, and always returned `("ecash", "bitcoincash")`

This is a follow-up to Bitcoin-ABC/ElectrumABC#250 (dropping of display of BCH addresses in the UI).

Test Plan:
```
python test_runner.py
pytest electrumabc.tests.regtest
```

Try the address converter tool in the prefix with various address formats. It should still support everything it did before, except for prefixless "bitcoincash:..." cash addresses.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15245
Fabcien pushed a commit that referenced this pull request Jan 24, 2024
Summary:
After this diff, bch cash addresses are no longer supported in the "Pay to" field, in BIP21 URIs or any method of entering an address that uses `Address.from_string` without setting `support_arbitrary_prefix=True`.

The address converter in the GUI still support any prefix. This diff also makes the command line / RPC `addressconvert` command support arbitrary prefixes.
But now we no longer support bch addresses without an explicit prefix.

This diff also incidentally fixes support for "ectest:..." URIs when running in testnet mode. Previously `web.parseable_schemes` did not correctly account for the net parameter, and always returned `("ecash", "bitcoincash")`

This is a follow-up to #250 (dropping of display of BCH addresses in the UI).

Test Plan:
```
python test_runner.py
pytest electrumabc.tests.regtest
```

Try the address converter tool in the prefix with various address formats. It should still support everything it did before, except for prefixless "bitcoincash:..." cash addresses.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant