Q:

Accounts got deleted from the wallet

I have a wallet with more than 10,000 accounts in it. I have tried to send some amount from one address to another address within the wallet but the amount sits in the sender's ledger balance for a long time so I ran rescan_bc from the wallet-cli. after rescan I can see only 1717 accounts in my wallet the rest of the accounts got deleted from my wallet. I try restore the wallet using the seed but it didn't help. Can anyone please help.

A:

Accounts are never "deleted". The wallet does, however, need to precompute some elliptic curve points for all possible accounts and subaddresses that it will search for incoming funds at. By default, the wallet will not look ahead more than 50 accounts at a time, and will not look ahead more than 200 subaddresses at a time, unless it sees activity at those subaddresses.
You can start the monero-cli-wallet with the option --subaddress-lookahead MAJOR:MINOR where MAJOR is the number of accounts to look ahead, and MINOR is the number of subaddresses to look ahead.
I assume that you misspoke when you said that you had 10,000 accounts, and meant that you had 10,000 subaddresses all within the same account. Therefore, use the option --subaddress-lookahead 50:10000 and then type rescan_bc when you're inside the wallet.
Note that looking ahead 50:10000 means precomputing 500,000 elliptic curve points, because 10,000 subaddresses will be precomputed for each of the 50 accounts. Therefore, expect the operation to start the wallet to take a few minutes.

