Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/wallettests.cpp
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | #endif | ||||
{ | { | ||||
LOCK(wallet.cs_wallet); | LOCK(wallet.cs_wallet); | ||||
wallet.SetAddressBook(test.coinbaseKey.GetPubKey().GetID(), "", | wallet.SetAddressBook(test.coinbaseKey.GetPubKey().GetID(), "", | ||||
"receive"); | "receive"); | ||||
wallet.AddKeyPubKey(test.coinbaseKey, test.coinbaseKey.GetPubKey()); | wallet.AddKeyPubKey(test.coinbaseKey, test.coinbaseKey.GetPubKey()); | ||||
} | } | ||||
{ | { | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
wallet.ScanForWalletTransactions(chainActive.Genesis(), nullptr, true); | WalletRescanReserver reserver(&wallet); | ||||
reserver.reserve(); | |||||
wallet.ScanForWalletTransactions(chainActive.Genesis(), nullptr, | |||||
reserver, true); | |||||
} | } | ||||
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")); | ||||
SendCoinsDialog sendCoinsDialog(platformStyle.get()); | SendCoinsDialog sendCoinsDialog(platformStyle.get()); | ||||
auto node = interfaces::MakeNode(); | auto node = interfaces::MakeNode(); | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |