bitcoin/src/qt/test
Wladimir J. van der Laan 961901f77e
Merge #11117: Prepare for non-Base58 addresses
864cd2787 Move CBitcoinAddress to base58.cpp (Pieter Wuille)
5c8ff0d44 Introduce wrappers around CBitcoinAddress (Pieter Wuille)

Pull request description:

  This patch removes the need for the intermediary Base58 type `CBitcoinAddress`, by providing {`Encode`,`Decode`,`IsValid`}`Destination` functions that directly operate on the conversion between `std::string`s and `CTxDestination`.

  As a side, it also fixes a number of indentation issues, and removes probably several unnecessary implicit `CTxDestination`<->`CBitcoinAddress` conversions.

  This change is far from complete. In follow-ups I'd like to:
  * Split off the specific address and key encoding logic from base58.h, and move it to a address.h or so.
  * Replace `CTxDestination` with a non-`boost::variant` version (which can be more efficient as `boost::variant` allocates everything on the heap, and remove the need for `boost::get<...>` and `IsValidDestination` calls everywhere).
  * Do the same for `CBitcoinSecret`, `CBitcoinExtKey`, and `CBitcoinExtPubKey`.

  However, I've tried to keep this patch to be minimally invasive, but still enough to support non-Base58 addresses. Perhaps a smaller patch is possible to hack Bech32 support into `CBitcoinAddress`, but I would consider that a move in the wrong direction.

Tree-SHA512: c2c77ffb57caeadf2429b1c2562ce60e8c7be8aa9f8e51b591f354b6b441162625b2efe14c023a1ae485cf2ed417263afa35c892891dfaa7844e7fbabccab85e
2017-09-06 22:31:02 +02:00
..
compattests.cpp Uses built-in byte swap if available (Apple) and if bswap_XX is undefined. 2016-12-17 12:27:00 +09:00
compattests.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
Makefile build: add stub makefiles for easier subdir builds 2014-06-05 16:05:43 -04:00
paymentrequestdata.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
paymentservertests.cpp Merge #10964: Pass SendCoinsRecipient (208 bytes) by reference 2017-08-15 20:43:45 +02:00
paymentservertests.h Pass SendCoinsRecipient (208 bytes) by const reference 2017-08-02 10:51:43 +02:00
rpcnestedtests.cpp Merge #11210: Stop test_bitcoin-qt touching ~/.bitcoin 2017-09-06 19:19:01 +02:00
rpcnestedtests.h [Qt] RPC-Console: support nested commands and simple value queries 2016-08-23 15:32:39 +02:00
test_main.cpp Stop test_bitcoin-qt touching ~/.bitcoin 2017-09-01 23:19:23 +12:00
uritests.cpp Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
uritests.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
wallettests.cpp Introduce wrappers around CBitcoinAddress 2017-09-06 13:07:45 -07:00
wallettests.h Add simple qt wallet test sending a transaction 2017-03-15 12:02:02 -05:00