monero-playground icon indicating copy to clipboard operation
monero-playground copied to clipboard

Wallet does not seem to sync after following the readme

Open AlexAnarcho opened this issue 3 years ago • 1 comments

image

Did a fresh git clone and followed the steps in the Readme. However I do not seem to be up and running.

The CLI response from the bash scripts seems also weird to me:

╰─❯ ./create_wallet 
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
  }
}  

The block height in my ./start_wallet_rpc_with_daemon terminal keeps saying 0 (sometimes it does show the current height, but then again in the next "update" => 0).

AlexAnarcho avatar Jun 03 '22 17:06 AlexAnarcho

There are two things that might have caused this: 1.the daemon was not connected.

as you can see here: https://github.com/spirobel/monero-playground/blob/21408173f9086e7f98db1357ab40796251d9fee3/start_wallet_rpc_with_daemon#L2 the script will start the wallet rpc and connect to the rino stagenet daemon. If this connection was not successful and you create a wallet the sync height (also called restore height) will be set to 0. This will also happen when you create a wallet while running a wallet rpc that has no daemon connection. to resolve this issue after the sync height is broken: Either delete the wallet and recreate with a working daemon connection or add a script that sets the sync height correctly.

2.the wallet was created with the correct sync/restore height, but the daemon connection didnt work. (this might be a permanent or temporal issue.) the way to solve it is to switch daemons or wait for it to work again. It is also a good chance to learn how to properly check if the daemon connection works ( if you are building an app it is probably a good idea to inform the user about this, so he can switch daemons)

spirobel avatar Jun 03 '22 18:06 spirobel