x42protocol / xServer

x42 Protocol's xServer for hosting distributed applications
http://www.x42.tech
MIT License
15 stars 7 forks source link

Start xServer automatically #60

Open MudDev opened 1 year ago

MudDev commented 1 year ago

A while back, Contabo did some maintenance and restarted my server, and everything came back online but It didn't start, it needed me to put the password in the xserver UI so my xserver was kicked off the network.

I think xserver need a way for it to start up automatically... You know in blockcore, you can set the wallet password in the x42.config, and when the node starts up, it will automatically start staking again without you having to put in the password... I imagine xServer needs something like that too.

I think that would help with users not getting xservers kicked off the network.

psavva commented 1 year ago

Hi @MudDev

I'm busy looking as to how/where this is implemented in BlockCore.

I'm only finding the setting "unlockdefaultwallet" which just unlocks the default wallet, and saves it in cache.

Which variables are needed to be set to make the Node start staking without any intervention after startup? I would like to see if we can do something similar in xServer.

Thank Panayiotis

MudDev commented 1 year ago

@psavva

  1. Enable staking: stake=1
  2. Put the wallet name you want to stake for
  3. Password

Do these three setting and your wallet will start staking for you automatically when it starts up.

Here is a SS of the settings you need to set. image