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

Method SetMinVersion

src/wallet/wallet.cpp:534–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534void CWallet::SetMinVersion(enum WalletFeature nVersion, WalletBatch* batch_in)
535{
536 LOCK(cs_wallet);
537 if (nWalletVersion >= nVersion)
538 return;
539 nWalletVersion = nVersion;
540
541 {
542 WalletBatch* batch = batch_in ? batch_in : new WalletBatch(GetDatabase());
543 if (nWalletVersion > 40000)
544 batch->WriteMinVersion(nWalletVersion);
545 if (!batch_in)
546 delete batch;
547 }
548}
549
550std::set<uint256> CWallet::GetConflicts(const uint256& txid) const
551{

Callers 5

WalletCreateFunction · 0.80
UpgradeMethod · 0.80
GenerateNewKeyMethod · 0.80
CreateMethod · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 1

WriteMinVersionMethod · 0.80

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64