| 194 | } |
| 195 | |
| 196 | bool 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 | |
| 206 | size_t CHDChain::CountAccounts() |
| 207 | { |