Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/addressbooktests.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
* the warning message presented to the user. | * the warning message presented to the user. | ||||
*/ | */ | ||||
void TestAddAddressesToSendBook(interfaces::Node &node) { | void TestAddAddressesToSendBook(interfaces::Node &node) { | ||||
TestChain100Setup test; | TestChain100Setup test; | ||||
std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>( | std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>( | ||||
Params(), node.context()->chain.get(), WalletLocation(), | Params(), node.context()->chain.get(), WalletLocation(), | ||||
WalletDatabase::CreateMock()); | WalletDatabase::CreateMock()); | ||||
wallet->SetupLegacyScriptPubKeyMan(); | |||||
bool firstRun; | bool firstRun; | ||||
wallet->LoadWallet(firstRun); | wallet->LoadWallet(firstRun); | ||||
auto build_address = [&wallet]() { | auto build_address = [&wallet]() { | ||||
CKey key; | CKey key; | ||||
key.MakeNewKey(true); | key.MakeNewKey(true); | ||||
CTxDestination dest(GetDestinationForKey( | CTxDestination dest(GetDestinationForKey( | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |