-
m-relay
<sneedlewoods_xmr:matrix.org> When you change the restore height in "Settings->Info->Wallet restore height" a prompt appears "Set a new restore height...", if you click the "Ok" button another prompt appears that asks "Are you sure you want to rebuild the wallet cache". Is it intended that if you cancel the second prompt the restore height still gets changed? That leaves you with a different height in the sett<clipped message>
-
m-relay
<sneedlewoods_xmr:matrix.org> ings than what the wallet actually used to scan. I can't judge if this could lead to some kind of undefined behavior or if there is a reason to do it like that.
-
m-relay
<ofrnxmr:xmr.mx> If you cancel the second prompt abd the wallet does not start rescanning, then it should probably revert the value to the old one
-
m-relay
<ofrnxmr:xmr.mx> Or better, it shouldnt change the value until the second prompt is confirmed
-
plowsof
if true sounds like a bug - are you sure? (lol jk)
-
plowsof
or the number is in settings but not applied, possible
-
plowsof
will repro now
-
plowsof
and my testnet node is offline brb
-
m-relay
<sneedlewoods:monero.social> that's what I assumed, made that change in an upcoming PR, but thought maybe I'm missing something
-
plowsof
sneedlewoods yes, it only effects the number in settings and does not actually do anything to the cache. the new (fake) resotre height persists after restarting gui
-
m-relay
<sneedlewoods:monero.social> you also agree that's probably not intended?
-
plowsof
correct , will be an assumption made in the javascript menus at a guess
-
plowsof
the original value probably not saved , just guessing
-
plowsof
but wait sneedlewoods, monero-wallet-cli says the restore height is 0
-
plowsof
so the wallet file has been modified by the gui after cancelling the change, but it didnt take effect? :-S
-
plowsof
cancel change in gui -> open wallet in cli -> open wallet in gui (see the cache has to be rebuilt msg) -> ??
-
m-relay
<sneedlewoods:monero.social> for me monero-wallet-cli gives the same restore height as GUI, after changing in GUI and then canceling the rescan
-
plowsof
ah ok. sorry . ignore what i said. wrong monero version
-
m-relay
<ofrnxmr:xmr.mx> I think the cache file is probably deleted after confirming (?)
-
m-relay
<sneedlewoods:monero.social> it will move `<wallet_file>` to `<wallet_file>.old_cache` if you confirm, this can also lead to undefined behavior if you don't save the new `<wallet_name>` first
-
m-relay
<sneedlewoods:monero.social> E.g. changing the password after confirming to rescan gives a `boost::filesystem::canonical` error
-
m-relay
<sneedlewoods:monero.social> Trying to solve this too