Skip to content

Commit e6c993c

Browse files
committed
[wip] remove P2PKH address legacy BitgesellOfficial#16
1 parent 4dd2efe commit e6c993c

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/wallet/test/ismine_tests.cpp

-32
Original file line numberDiff line numberDiff line change
@@ -65,38 +65,6 @@ BOOST_AUTO_TEST_CASE(ismine_standard)
6565
BOOST_CHECK_EQUAL(result, ISMINE_SPENDABLE);
6666
}
6767

68-
// P2PKH compressed
69-
{
70-
CWallet keystore(chain.get(), WalletLocation(), WalletDatabase::CreateDummy());
71-
LOCK(keystore.cs_wallet);
72-
scriptPubKey = GetScriptForDestination(PKHash(pubkeys[0]));
73-
74-
// Keystore does not have key
75-
result = keystore.GetLegacyScriptPubKeyMan()->IsMine(scriptPubKey);
76-
BOOST_CHECK_EQUAL(result, ISMINE_NO);
77-
78-
// Keystore has key
79-
BOOST_CHECK(keystore.GetLegacyScriptPubKeyMan()->AddKey(keys[0]));
80-
result = keystore.GetLegacyScriptPubKeyMan()->IsMine(scriptPubKey);
81-
BOOST_CHECK_EQUAL(result, ISMINE_SPENDABLE);
82-
}
83-
84-
// P2PKH uncompressed
85-
{
86-
CWallet keystore(chain.get(), WalletLocation(), WalletDatabase::CreateDummy());
87-
LOCK(keystore.cs_wallet);
88-
scriptPubKey = GetScriptForDestination(PKHash(uncompressedPubkey));
89-
90-
// Keystore does not have key
91-
result = keystore.GetLegacyScriptPubKeyMan()->IsMine(scriptPubKey);
92-
BOOST_CHECK_EQUAL(result, ISMINE_NO);
93-
94-
// Keystore has key
95-
BOOST_CHECK(keystore.GetLegacyScriptPubKeyMan()->AddKey(uncompressedKey));
96-
result = keystore.GetLegacyScriptPubKeyMan()->IsMine(scriptPubKey);
97-
BOOST_CHECK_EQUAL(result, ISMINE_SPENDABLE);
98-
}
99-
10068
// P2SH
10169
{
10270
CWallet keystore(chain.get(), WalletLocation(), WalletDatabase::CreateDummy());

0 commit comments

Comments
 (0)