| 1483 | } |
| 1484 | |
| 1485 | void CWallet::SetHDSeed(const CPubKey& seed) |
| 1486 | { |
| 1487 | LOCK(cs_wallet); |
| 1488 | // store the keyid (hash160) together with |
| 1489 | // the child index counter in the database |
| 1490 | // as a hdchain object |
| 1491 | CHDChain newHdChain; |
| 1492 | newHdChain.nVersion = CanSupportFeature(FEATURE_HD_SPLIT) ? CHDChain::VERSION_HD_CHAIN_SPLIT : CHDChain::VERSION_HD_BASE; |
| 1493 | newHdChain.seed_id = seed.GetID(); |
| 1494 | SetHDChain(newHdChain, false); |
| 1495 | } |
| 1496 | |
| 1497 | void CWallet::SetHDChain(const CHDChain& chain, bool memonly) |
| 1498 | { |