Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/addressbooktests.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
* 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() { | void TestAddAddressesToSendBook() { | ||||
TestChain100Setup test; | TestChain100Setup test; | ||||
auto chain = interfaces::MakeChain(); | auto chain = interfaces::MakeChain(); | ||||
std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>( | std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>( | ||||
Params(), *chain, WalletLocation(), WalletDatabase::CreateMock()); | Params(), chain.get(), WalletLocation(), 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 |