mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
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
This commit is contained in:
parent
d3599c22bd
commit
0ca258a5ac
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue