| 419 | } |
| 420 | |
| 421 | bool LoadHDChain(CWallet* pwallet, DataStream& ssValue, std::string& strErr) |
| 422 | { |
| 423 | LOCK(pwallet->cs_wallet); |
| 424 | try { |
| 425 | CHDChain chain; |
| 426 | ssValue >> chain; |
| 427 | pwallet->GetOrCreateLegacyDataSPKM()->LoadHDChain(chain); |
| 428 | } catch (const std::exception& e) { |
| 429 | if (strErr.empty()) { |
| 430 | strErr = e.what(); |
| 431 | } |
| 432 | return false; |
| 433 | } |
| 434 | return true; |
| 435 | } |
| 436 | |
| 437 | static DBErrors LoadWalletFlags(CWallet* pwallet, DatabaseBatch& batch) EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet) |
| 438 | { |
no test coverage detected