aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAntoine Poinsot <darosior@protonmail.com>2022-07-19 11:43:20 +0200
committerAntoine Poinsot <darosior@protonmail.com>2022-08-04 11:32:24 +0200
commit0ca258a5ace798c4e54308aa8a09b1ab3302cd7e (patch)
treeec4cdf79913da2053279228075318d72ee633216 /src/test
parentd3599c22bd4c6b3cfaaadd675e95ebe3b3cb1749 (diff)
downloadbitcoin-0ca258a5ace798c4e54308aa8a09b1ab3302cd7e.tar.xz
descriptor: never ignore the return value when deriving an extended key
In some cases we asserted it succeeded, in others we were just ignoring it
Diffstat (limited to 'src/test')
-rw-r--r--src/test/descriptor_tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/descriptor_tests.cpp b/src/test/descriptor_tests.cpp
index a8c666079d..8a17472cda 100644
--- a/src/test/descriptor_tests.cpp
+++ b/src/test/descriptor_tests.cpp
@@ -233,7 +233,7 @@ void DoCheck(const std::string& prv, const std::string& pub, const std::string&
for (const auto& xpub_pair : parent_xpub_cache) {
const CExtPubKey& xpub = xpub_pair.second;
CExtPubKey der;
- xpub.Derive(der, i);
+ BOOST_CHECK(xpub.Derive(der, i));
pubkeys.insert(der.pubkey);
}
int count_pks = 0;
@@ -265,7 +265,7 @@ void DoCheck(const std::string& prv, const std::string& pub, const std::string&
const CExtPubKey& xpub = xpub_pair.second;
pubkeys.insert(xpub.pubkey);
CExtPubKey der;
- xpub.Derive(der, i);
+ BOOST_CHECK(xpub.Derive(der, i));
pubkeys.insert(der.pubkey);
}
int count_pks = 0;