| 418 | */ |
| 419 | |
| 420 | const CWalletTx* CWallet::GetWalletTx(const uint256& hash) const |
| 421 | { |
| 422 | AssertLockHeld(cs_wallet); |
| 423 | std::map<uint256, CWalletTx>::const_iterator it = mapWallet.find(hash); |
| 424 | if (it == mapWallet.end()) |
| 425 | return nullptr; |
| 426 | return &(it->second); |
| 427 | } |
| 428 | |
| 429 | void CWallet::UpgradeKeyMetadata() |
| 430 | { |