MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / initModelForWallet

Method initModelForWallet

src/qt/test/wallettests.cpp:236–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 }
235
236 void initModelForWallet(interfaces::Node& node, const std::shared_ptr<CWallet>& wallet, const PlatformStyle* platformStyle)
237 {
238 WalletContext& context = *node.walletLoader().context();
239 AddWallet(context, wallet);
240 walletModel = std::make_unique<WalletModel>(interfaces::MakeWallet(context, wallet), *clientModel, platformStyle);
241 RemoveWallet(context, wallet, /* load_on_start= */ std::nullopt);
242 sendCoinsDialog.setModel(walletModel.get());
243 transactionView.setModel(walletModel.get());
244 }
245
246};
247

Callers 2

TestGUIFunction · 0.80
TestGUIWatchOnlyFunction · 0.80

Calls 6

AddWalletFunction · 0.85
RemoveWalletFunction · 0.85
MakeWalletFunction · 0.50
contextMethod · 0.45
setModelMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected