Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible BUG: monero-wallet-rpc generates bad addresses? #9213

Open
robertvo opened this issue Mar 4, 2024 · 1 comment
Open

possible BUG: monero-wallet-rpc generates bad addresses? #9213

robertvo opened this issue Mar 4, 2024 · 1 comment

Comments

@robertvo
Copy link

robertvo commented Mar 4, 2024

I have generated view only wallet and ran monero-wallet-rpc on a Linux server.
That sever generated new addresses via create_address RPC call.
After payment to these addresses the server correctly notified the receipt and confirmations.
These payments were confirmed on the chain however never showed up in the original non-viewonly wallet.
I have verified that wallet is properly synchronized, and that monero-wallet-rpc was not compromised by checking sha256.

When I started monero-wallet-rpc on my windows machine with the exact same view only .keys wallet, and did
get_address_index call, it said: "Address doesn't belong to the wallet". I triple checked I'm using the same wallet file on Linux and Windows. On linux the get_address_index returned index around 2712. I confirmed that get_address_index for the primary address was working fine returning index 0 on both Linux and Windows.

These payments went to a black hole because monero-wallet-rpc possibly generated wrong addresses.
Could that wallet be somehow corrupted?
I generated a brand new wallet and the problem is gone.
I'm wondering why this happed and where did my money go and will this happen again in future?

@selsta
Copy link
Collaborator

selsta commented Mar 5, 2024

It's likely an issue with the lookahead, you can use the --subaddress-lookahead 50:3000 parameter during the wallet creation in monero-wallet-cli to make sure it scans 3000 subaddresses in advance. By default the value is 250 if I remember correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants