|
|
|
@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE(multisig_verify)
@@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE(multisig_verify)
|
|
|
|
|
{ |
|
|
|
|
CKey key[4]; |
|
|
|
|
for (int i = 0; i < 4; i++) |
|
|
|
|
key[i].MakeNewKey(); |
|
|
|
|
key[i].MakeNewKey(true); |
|
|
|
|
|
|
|
|
|
CScript a_and_b; |
|
|
|
|
a_and_b << OP_2 << key[0].GetPubKey() << key[1].GetPubKey() << OP_2 << OP_CHECKMULTISIG; |
|
|
|
@ -131,7 +131,7 @@ BOOST_AUTO_TEST_CASE(multisig_IsStandard)
@@ -131,7 +131,7 @@ BOOST_AUTO_TEST_CASE(multisig_IsStandard)
|
|
|
|
|
{ |
|
|
|
|
CKey key[4]; |
|
|
|
|
for (int i = 0; i < 4; i++) |
|
|
|
|
key[i].MakeNewKey(); |
|
|
|
|
key[i].MakeNewKey(true); |
|
|
|
|
|
|
|
|
|
CScript a_and_b; |
|
|
|
|
a_and_b << OP_2 << key[0].GetPubKey() << key[1].GetPubKey() << OP_2 << OP_CHECKMULTISIG; |
|
|
|
@ -178,7 +178,7 @@ BOOST_AUTO_TEST_CASE(multisig_Solver1)
@@ -178,7 +178,7 @@ BOOST_AUTO_TEST_CASE(multisig_Solver1)
|
|
|
|
|
CBitcoinAddress keyaddr[3]; |
|
|
|
|
for (int i = 0; i < 3; i++) |
|
|
|
|
{ |
|
|
|
|
key[i].MakeNewKey(); |
|
|
|
|
key[i].MakeNewKey(true); |
|
|
|
|
keystore.AddKey(key[i]); |
|
|
|
|
keyaddr[i].SetPubKey(key[i].GetPubKey()); |
|
|
|
|
} |
|
|
|
@ -257,7 +257,7 @@ BOOST_AUTO_TEST_CASE(multisig_Sign)
@@ -257,7 +257,7 @@ BOOST_AUTO_TEST_CASE(multisig_Sign)
|
|
|
|
|
CKey key[4]; |
|
|
|
|
for (int i = 0; i < 4; i++) |
|
|
|
|
{ |
|
|
|
|
key[i].MakeNewKey(); |
|
|
|
|
key[i].MakeNewKey(true); |
|
|
|
|
keystore.AddKey(key[i]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|