aboutsummaryrefslogtreecommitdiff
path: root/src/test/bloom_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2017-09-19 16:49:52 -0700
committerPieter Wuille <[email protected]>2018-02-19 18:55:20 -0800
commit32e69fa0df8fc1cfc8ac4f8381bc54b8f33e1c38 (patch)
treecd00b30d48911729cef8bd436797177bd8ebeb33 /src/test/bloom_tests.cpp
parentMerge #10579: [RPC] Split signrawtransaction into wallet and non-wallet RPC c... (diff)
downloaddiscoin-32e69fa0df8fc1cfc8ac4f8381bc54b8f33e1c38.tar.xz
discoin-32e69fa0df8fc1cfc8ac4f8381bc54b8f33e1c38.zip
Replace CBitcoinSecret with {Encode,Decode}Secret
Diffstat (limited to 'src/test/bloom_tests.cpp')
-rw-r--r--src/test/bloom_tests.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/bloom_tests.cpp b/src/test/bloom_tests.cpp
index af5533b10..27a749045 100644
--- a/src/test/bloom_tests.cpp
+++ b/src/test/bloom_tests.cpp
@@ -85,10 +85,7 @@ BOOST_AUTO_TEST_CASE(bloom_create_insert_serialize_with_tweak)
BOOST_AUTO_TEST_CASE(bloom_create_insert_key)
{
std::string strSecret = std::string("5Kg1gnAjaLfKiwhhPpGS3QfRg2m6awQvaj98JCZBZQ5SuS2F15C");
- CBitcoinSecret vchSecret;
- BOOST_CHECK(vchSecret.SetString(strSecret));
-
- CKey key = vchSecret.GetKey();
+ CKey key = DecodeSecret(strSecret);
CPubKey pubkey = key.GetPubKey();
std::vector<unsigned char> vchPubKey(pubkey.begin(), pubkey.end());