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

Method AddWalletFlags

src/wallet/wallet.cpp:1507–1517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1505}
1506
1507bool CWallet::AddWalletFlags(uint64_t flags)
1508{
1509 LOCK(cs_wallet);
1510 // We should never be writing unknown non-tolerable wallet flags
1511 assert(((flags & KNOWN_WALLET_FLAGS) >> 32) == (flags >> 32));
1512 if (!WalletBatch(GetDatabase()).WriteWalletFlags(flags)) {
1513 throw std::runtime_error(std::string(__func__) + ": writing wallet flags failed");
1514 }
1515
1516 return LoadWalletFlags(flags);
1517}
1518
1519bool CWallet::ImportScripts(const std::set<CScript> scripts, int64_t timestamp)
1520{

Callers 2

WalletCreateFunction · 0.80
CreateMethod · 0.80

Calls 2

WalletBatchClass · 0.85
WriteWalletFlagsMethod · 0.80

Tested by

no test coverage detected