MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / SetHDSeed

Method SetHDSeed

src/wallet/wallet.cpp:1485–1495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1483}
1484
1485void 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
1497void CWallet::SetHDChain(const CHDChain& chain, bool memonly)
1498{

Callers 3

sethdseedFunction · 0.80
CreateWalletFromFileMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

GetIDMethod · 0.80

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64