Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/addressbooktests.cpp
Show First 20 Lines • Show All 56 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; | ||||
node.setContext(&test.m_node); | node.setContext(&test.m_node); | ||||
std::shared_ptr<CWallet> wallet = | std::shared_ptr<CWallet> wallet = | ||||
std::make_shared<CWallet>(node.context()->chain.get(), WalletLocation(), | std::make_shared<CWallet>(node.context()->chain.get(), WalletLocation(), | ||||
WalletDatabase::CreateMock()); | CreateMockWalletDatabase()); | ||||
wallet->SetupLegacyScriptPubKeyMan(); | 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); | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |