| 439 | } |
| 440 | |
| 441 | bool LegacyScriptPubKeyMan::SetupGeneration(bool force) |
| 442 | { |
| 443 | if ((CanGenerateKeys() && !force) || m_storage.IsLocked()) { |
| 444 | return false; |
| 445 | } |
| 446 | |
| 447 | SetHDSeed(GenerateNewSeed()); |
| 448 | if (!NewKeyPool()) { |
| 449 | return false; |
| 450 | } |
| 451 | return true; |
| 452 | } |
| 453 | |
| 454 | bool LegacyScriptPubKeyMan::IsHDEnabled() const |
| 455 | { |
no test coverage detected