monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
8.98k stars 3.11k forks source link

Changing subaddress-lookahead on existing wallet does not result in correct blockchain rescan #7364

Open michnovka opened 3 years ago

michnovka commented 3 years ago

Using latest v0.17.1.9 cli wallet, I had issues that my BTCPay gateway was using larger offsets than the default 200, so I opened the wallet in monero-wallet-cli and used

set subaddress-lookahead 3:50000 rescan_bc

And this did nothing. The same transactions were found, no missing transactions were actually added.

Afetr restarting wallet few times and rescanning bc few times, I tried to create new wallet from the same seed using

monero-wallet-cli --restore-deterministic-wallet --subaddress-lookahead 3:50000

And voila! This did the trick, all the missing transactions were found.

So the issue is that for existing wallet, changing the subaddress-lookahead has no real effect. I confirmed the change is saved properly by typing set into wallet-cli, and this did show the value I configured. However, the rescan_bc was always rather quick and never found any new transactions.

michnovka commented 3 years ago

I ran addres new few times on both accounts, then did rescan_bc and this seems to have fixed the issue. however changing the subaddress-lookahead on its own does nothing.