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

Method UnsetWalletFlagWithDB

src/wallet/wallet.cpp:1477–1483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1475}
1476
1477void CWallet::UnsetWalletFlagWithDB(WalletBatch& batch, uint64_t flag)
1478{
1479 LOCK(cs_wallet);
1480 m_wallet_flags &= ~flag;
1481 if (!batch.WriteWalletFlags(m_wallet_flags))
1482 throw std::runtime_error(std::string(__func__) + ": writing wallet flags failed");
1483}
1484
1485void CWallet::UnsetBlankWalletFlag(WalletBatch& batch)
1486{

Callers

nothing calls this directly

Calls 1

WriteWalletFlagsMethod · 0.80

Tested by

no test coverage detected