MCPcopy Create free account
hub / github.com/LUX-Core/lux / SetAccount

Method SetAccount

src/hdchain.cpp:196–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196bool CHDChain::SetAccount(uint32_t nAccountIndex, const CHDAccount& hdAccount)
197{
198 LOCK(cs_accounts);
199 // can only replace existing accounts
200 if (nAccountIndex > mapAccounts.size() - 1)
201 return false;
202 mapAccounts[nAccountIndex] = hdAccount;
203 return true;
204}
205
206size_t CHDChain::CountAccounts()
207{

Callers 1

DeriveNewChildKeyMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected