Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/ismine_tests.cpp
Show All 23 Lines | 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; | NodeContext node; | ||||
std::unique_ptr<interfaces::Chain> chain = interfaces::MakeChain(node); | std::unique_ptr<interfaces::Chain> chain = | ||||
interfaces::MakeChain(node, Params()); | |||||
CScript scriptPubKey; | CScript scriptPubKey; | ||||
isminetype result; | isminetype result; | ||||
// P2PK compressed | // P2PK compressed | ||||
{ | { | ||||
CWallet keystore(Params(), chain.get(), WalletLocation(), | CWallet keystore(Params(), chain.get(), WalletLocation(), | ||||
WalletDatabase::CreateDummy()); | WalletDatabase::CreateDummy()); | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |