| 532 | } |
| 533 | |
| 534 | void 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 | |
| 550 | std::set<uint256> CWallet::GetConflicts(const uint256& txid) const |
| 551 | { |