Support parsing cashaddr from command line
Summary:
This makes the client support parsing cashaddr encoded addresses for all networks.
Depends on D797
Test Plan:
./bitcoin-qt "bitcoincash:mz8DUu5atAfNEBNeQHrpdGkfWZ9vmk3Q13?amount=42.00000000&label=test1&message=a%20message"
Ensure that the client boot in testnet mode and the proper sent is prefilled.
./bitcoin-qt "bitcoincash:1F6MqpCw3f8JRErcZMYjkFLBzpFvvjobZZ?amount=42.00000000&label=mainnet1&message=a%20message"
Ensure the client boots in mainnet and the sent form is prefilled.
./bitcoin-qt "bchtest:qp5dzwdct8xcpec62z799rdfpylxftsl6v0trfz2m9?amount=42.00000000&label=cashtest2&message=a%20message" "bitcoincash:mz8DUu5atAfNEBNeQHrpdGkfWZ9vmk3Q13?amount=42.00000000&label=test1&message=a%20message"
Ensure that the client start on testnet and fill up the sent form properly.
./bitcoin-qt "bitcoincash:qrc5xvnqwv3esj8hs5w85gh3xjwgnnjfvv3ll6wmdu?amount=42.00000000&label=test3&message=a%20message" "bitcoincash:1F6MqpCw3f8JRErcZMYjkFLBzpFvvjobZZ?amount=42.00000000&label=mainnet1&message=a%20message"
dito
./bitcoin-qt "bchreg:qrxvv8fpv42wvlls6z4mp9qvrs3kar2pau5tssl8xd?amount=42.00000000&label=cashtest1&message=a%20message"
Start in regtest mode.
Reviewers: #bitcoin_abc, dagurval, schancel
Reviewed By: #bitcoin_abc, schancel
Subscribers: schancel, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D583