When I restart the daemon the method 'create_address' somehow cycles already used addresses (not used as in received monero but already created before).

is there a way to prevent the daemon from returning the same address twice?


Subaddresses are deterministic, so the same index will yield the same address. If the wallet daemon is returning repeat addresses, it means it does not remember it has already gone through them. Most likely, you did not save before stopping the wallet daemon. Call the store RPC before quitting, or after generating a new subaddress (saving can get slow for large wallets, so you may want to save on a timer instead in that case, details will depend on your particular conditions).

| improve this answer | |
  • great, thank you for that quick response. i'll try that solution – Rick Deckard Jan 22 at 10:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.