MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetOfflineXPubKey

Method SetOfflineXPubKey

src/wallet/wallet.cpp:3521–3529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3519}
3520
3521bool CWallet::SetOfflineXPubKey(const CExtPubKey& offline_xpub_in)
3522{
3523 LOCK(cs_wallet);
3524 if (!WalletBatch(GetDatabase()).WriteOfflineXPubKey(offline_xpub_in)) {
3525 return false;
3526 }
3527 offline_xpub = offline_xpub_in;
3528 return true;
3529}
3530
3531bool CWallet::SetOfflineDescriptor(const std::string& offline_desc_in)
3532{

Callers 1

initpegoutwalletFunction · 0.80

Calls 2

WalletBatchClass · 0.85
WriteOfflineXPubKeyMethod · 0.80

Tested by

no test coverage detected