mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 9b9752217f into merged_master (Bitcoin PR bitcoin/bitcoin#31570)
This commit is contained in:
commit
8a367ffcf3
1 changed files with 2 additions and 1 deletions
|
|
@ -161,7 +161,8 @@ void DoCheck(std::string prv, std::string pub, const std::string& norm_pub, int
|
|||
// We must be able to estimate the max satisfaction size for any solvable descriptor top descriptor (but combo).
|
||||
const bool is_nontop_or_nonsolvable{!parse_priv->IsSolvable() || !parse_priv->GetOutputType()};
|
||||
const auto max_sat_maxsig{parse_priv->MaxSatisfactionWeight(true)};
|
||||
const auto max_sat_nonmaxsig{parse_priv->MaxSatisfactionWeight(true)};
|
||||
const auto max_sat_nonmaxsig{parse_priv->MaxSatisfactionWeight(false)};
|
||||
BOOST_CHECK(max_sat_nonmaxsig <= max_sat_maxsig);
|
||||
const auto max_elems{parse_priv->MaxSatisfactionElems()};
|
||||
const bool is_input_size_info_set{max_sat_maxsig && max_sat_nonmaxsig && max_elems};
|
||||
BOOST_CHECK_MESSAGE(is_input_size_info_set || is_nontop_or_nonsolvable, prv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue