mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
test: fix descriptors in ismine_tests
Some descriptors contain whitespace in public keys within fragments. This fixes it.
This commit is contained in:
parent
5691fa93c4
commit
50856695ef
1 changed files with 5 additions and 5 deletions
|
@ -406,7 +406,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
|
|||
// scriptPubKey multisig - Descriptor
|
||||
{
|
||||
CWallet keystore(chain.get(), "", CreateMockableWalletDatabase());
|
||||
std::string desc_str = "multi(2, " + EncodeSecret(uncompressedKey) + ", " + EncodeSecret(keys[1]) + ")";
|
||||
std::string desc_str = "multi(2," + EncodeSecret(uncompressedKey) + "," + EncodeSecret(keys[1]) + ")";
|
||||
|
||||
auto spk_manager = CreateDescriptor(keystore, desc_str, true);
|
||||
|
||||
|
@ -442,7 +442,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
|
|||
{
|
||||
CWallet keystore(chain.get(), "", CreateMockableWalletDatabase());
|
||||
|
||||
std::string desc_str = "sh(multi(2, " + EncodeSecret(uncompressedKey) + ", " + EncodeSecret(keys[1]) + "))";
|
||||
std::string desc_str = "sh(multi(2," + EncodeSecret(uncompressedKey) + "," + EncodeSecret(keys[1]) + "))";
|
||||
|
||||
auto spk_manager = CreateDescriptor(keystore, desc_str, true);
|
||||
|
||||
|
@ -485,7 +485,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
|
|||
{
|
||||
CWallet keystore(chain.get(), "", CreateMockableWalletDatabase());
|
||||
|
||||
std::string desc_str = "wsh(multi(2, " + EncodeSecret(keys[0]) + ", " + EncodeSecret(keys[1]) + "))";
|
||||
std::string desc_str = "wsh(multi(2," + EncodeSecret(keys[0]) + "," + EncodeSecret(keys[1]) + "))";
|
||||
|
||||
auto spk_manager = CreateDescriptor(keystore, desc_str, true);
|
||||
|
||||
|
@ -528,7 +528,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
|
|||
{
|
||||
CWallet keystore(chain.get(), "", CreateMockableWalletDatabase());
|
||||
|
||||
std::string desc_str = "wsh(multi(2, " + EncodeSecret(uncompressedKey) + ", " + EncodeSecret(keys[1]) + "))";
|
||||
std::string desc_str = "wsh(multi(2," + EncodeSecret(uncompressedKey) + "," + EncodeSecret(keys[1]) + "))";
|
||||
|
||||
auto spk_manager = CreateDescriptor(keystore, desc_str, false);
|
||||
BOOST_CHECK_EQUAL(spk_manager, nullptr);
|
||||
|
@ -568,7 +568,7 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
|
|||
{
|
||||
CWallet keystore(chain.get(), "", CreateMockableWalletDatabase());
|
||||
|
||||
std::string desc_str = "sh(wsh(multi(2, " + EncodeSecret(keys[0]) + ", " + EncodeSecret(keys[1]) + ")))";
|
||||
std::string desc_str = "sh(wsh(multi(2," + EncodeSecret(keys[0]) + "," + EncodeSecret(keys[1]) + ")))";
|
||||
|
||||
auto spk_manager = CreateDescriptor(keystore, desc_str, true);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue