Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/wallettests.cpp
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | wallet->LoadWallet(firstRun); | ||||
wallet->m_default_address_type), | wallet->m_default_address_type), | ||||
"", "receive"); | "", "receive"); | ||||
wallet->AddKeyPubKey(test.coinbaseKey, test.coinbaseKey.GetPubKey()); | wallet->AddKeyPubKey(test.coinbaseKey, test.coinbaseKey.GetPubKey()); | ||||
} | } | ||||
{ | { | ||||
auto locked_chain = wallet->chain().lock(); | auto locked_chain = wallet->chain().lock(); | ||||
WalletRescanReserver reserver(wallet.get()); | WalletRescanReserver reserver(wallet.get()); | ||||
reserver.reserve(); | reserver.reserve(); | ||||
wallet->ScanForWalletTransactions(::ChainActive().Genesis(), nullptr, | const CBlockIndex *const null_block = nullptr; | ||||
reserver, true); | const CBlockIndex *stop_block; | ||||
QCOMPARE(wallet->ScanForWalletTransactions( | |||||
::ChainActive().Genesis(), nullptr, reserver, stop_block, | |||||
true /* fUpdate */), | |||||
CWallet::ScanResult::SUCCESS); | |||||
QCOMPARE(stop_block, null_block); | |||||
} | } | ||||
wallet->SetBroadcastTransactions(true); | wallet->SetBroadcastTransactions(true); | ||||
// Create widgets for sending coins and listing transactions. | // Create widgets for sending coins and listing transactions. | ||||
std::unique_ptr<const PlatformStyle> platformStyle( | std::unique_ptr<const PlatformStyle> platformStyle( | ||||
PlatformStyle::instantiate("other")); | PlatformStyle::instantiate("other")); | ||||
auto node = interfaces::MakeNode(); | auto node = interfaces::MakeNode(); | ||||
OptionsModel optionsModel(*node); | OptionsModel optionsModel(*node); | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |