diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-12 13:52:01 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-12 13:52:03 +0200 |
commit | 68d5fb3cb3bf456735ff48c8caa5e4074ae8579a (patch) | |
tree | 64a730ae7f0b232aa5f8cce7115db8d2b282c53d /src/test | |
parent | 029f4904d17cd4eb5df18f965d05c9a0113794b1 (diff) | |
parent | f6b7c644c998799c10704be4a5b42d9cacc8a746 (diff) |
Merge pull request #4165
f6b7c64 Move base58.h implementation code to base58.cpp (Pieter Wuille)
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/base58_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/base58_tests.cpp b/src/test/base58_tests.cpp index 5689e69995..b81a19cfd8 100644 --- a/src/test/base58_tests.cpp +++ b/src/test/base58_tests.cpp @@ -233,7 +233,7 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_gen) continue; } CBitcoinAddress addrOut; - BOOST_CHECK_MESSAGE(boost::apply_visitor(CBitcoinAddressVisitor(&addrOut), dest), "encode dest: " + strTest); + BOOST_CHECK_MESSAGE(addrOut.Set(dest), "encode dest: " + strTest); BOOST_CHECK_MESSAGE(addrOut.ToString() == exp_base58string, "mismatch: " + strTest); } } @@ -241,7 +241,7 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_gen) // Visiting a CNoDestination must fail CBitcoinAddress dummyAddr; CTxDestination nodest = CNoDestination(); - BOOST_CHECK(!boost::apply_visitor(CBitcoinAddressVisitor(&dummyAddr), nodest)); + BOOST_CHECK(!dummyAddr.Set(nodest)); SelectParams(CChainParams::MAIN); } |