More of 13697: Support output descriptors in scantxoutset

This commit is contained in:
UdjinM6 2021-07-29 04:03:51 +03:00
parent a972afdf9e
commit 21b98ba189
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9

View File

@ -91,6 +91,7 @@ void Check(const std::string& prv, const std::string& pub, int flags, const std:
BOOST_CHECK_EQUAL(spks.size(), ref.size()); BOOST_CHECK_EQUAL(spks.size(), ref.size());
for (size_t n = 0; n < spks.size(); ++n) { for (size_t n = 0; n < spks.size(); ++n) {
BOOST_CHECK_EQUAL(ref[n], HexStr(spks[n])); BOOST_CHECK_EQUAL(ref[n], HexStr(spks[n]));
BOOST_CHECK_EQUAL(IsSolvable(Merge(key_provider, script_provider), spks[n]), (flags & UNSOLVABLE) == 0);
if (flags & SIGNABLE) { if (flags & SIGNABLE) {
CMutableTransaction spend; CMutableTransaction spend;