So I ran (address new) 5 times creating 5 subaddresses and sent some money to subaddress 3. In this session I could run (address new) again and it would return a subaddress in index 6. Running (address all) returns all addresses up to index 6. close wallet
On reopening wallet running (address all) only returns the primary address and subaddresses up to the last used subaddress (in this example 3) and on running (address new) it returns the same subaddress at index 4 instead of a new subaddress at index 7.
Is this how it is supposed to work? Is this on purpose?
Is it because wallets wont save subaddresses that arent used, but since each one is created from the previous that once one is used, all previous are saved?