Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/ismine_tests.cpp
Show All 22 Lines | BOOST_AUTO_TEST_CASE(ismine_standard) { | ||||
for (int i = 0; i < 2; i++) { | for (int i = 0; i < 2; i++) { | ||||
keys[i].MakeNewKey(true); | keys[i].MakeNewKey(true); | ||||
pubkeys[i] = keys[i].GetPubKey(); | pubkeys[i] = keys[i].GetPubKey(); | ||||
} | } | ||||
CKey uncompressedKey; | CKey uncompressedKey; | ||||
uncompressedKey.MakeNewKey(false); | uncompressedKey.MakeNewKey(false); | ||||
CPubKey uncompressedPubkey = uncompressedKey.GetPubKey(); | CPubKey uncompressedPubkey = uncompressedKey.GetPubKey(); | ||||
NodeContext node; | std::unique_ptr<interfaces::Chain> &chain = m_node.chain; | ||||
std::unique_ptr<interfaces::Chain> chain = | |||||
interfaces::MakeChain(node, Params()); | |||||
CScript scriptPubKey; | CScript scriptPubKey; | ||||
isminetype result; | isminetype result; | ||||
// P2PK compressed | // P2PK compressed | ||||
{ | { | ||||
CWallet keystore(chain.get(), "", CreateDummyWalletDatabase()); | CWallet keystore(chain.get(), "", CreateDummyWalletDatabase()); | ||||
keystore.SetupLegacyScriptPubKeyMan(); | keystore.SetupLegacyScriptPubKeyMan(); | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |