Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/addressbooktests.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
* successfully. | * successfully. | ||||
* | * | ||||
* In each case, verify the resulting state of the address book and optionally | * In each case, verify the resulting state of the address book and optionally | ||||
* 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 = | ||||
Params(), node.context()->chain.get(), WalletLocation(), | std::make_shared<CWallet>(node.context()->chain.get(), WalletLocation(), | ||||
WalletDatabase::CreateMock()); | WalletDatabase::CreateMock()); | ||||
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 |