dcrwallet icon indicating copy to clipboard operation
dcrwallet copied to clipboard

Increment used address for same wallet transactions

Open beansgum opened this issue 7 years ago • 2 comments

Currently wallet.CurrentAddress function returns the next unused address for an account. This works fine for received transactions but fails to increment the last used address when I send a transaction to my self using an external address. It gets corrected at the next opening of the wallet.
This can be easily recreated by getting an address from wallet.CurrentAddress, send a transaction from same wallet to that address and wallet.CurrentAddress would return same address.

beansgum avatar Nov 14 '18 20:11 beansgum

Can you describe how you are creating and sending the transaction?

jrick avatar Nov 14 '18 20:11 jrick

https://github.com/raedahgroup/mobilewallet/blob/master/mobilewallet.go#L1265

This function handles creating and sending of transactions.

beansgum avatar Nov 14 '18 20:11 beansgum