BytomDAO/bytom

Solonet setup issues

Closed this issue · 3 comments

After launching solonet mining is disabled and it's impossible to enable it.

Here is how solonet is created (main.exe here is compiled bytomd):

main.exe node --mining.enable --home $HOME/bytom/solonet
main.exe init --chain_id solonet --home $HOME/bytom/solonet

then bytomcli is used to interact with running node:

PS C:\Users\user\go\src\github.com\bytom\cmd\bytomcli> .\main.exe net-info
{
  "current_block": 0,
  "highest_block": 0,
  "listening": true,
  "mining": false,
  "network_id": "solonet",
  "peer_count": 0,
  "syncing": false,
  "version_info": {
    "new_version": "1.0.7",
    "update": 0,
    "version": "1.0.7"
  }
}
PS C:\Users\user\go\src\github.com\bytom\cmd\bytomcli> .\main.exe set-mining true
ERROR 2019/02/22 14:11:16 Bytom API Error
PS C:\Users\user\go\src\github.com\bytom\cmd\bytomcli> .\main.exe set-mining 1
stop mining success
PS C:\Users\user\go\src\github.com\bytom\cmd\bytomcli> .\main.exe net-info
{
  "current_block": 0,
  "highest_block": 0,
  "listening": true,
  "mining": false,
  "network_id": "solonet",
  "peer_count": 0,
  "syncing": false,
  "version_info": {
    "new_version": "1.0.7",
    "update": 0,
    "version": "1.0.7"
  }
}
PS C:\Users\user\go\src\github.com\bytom\cmd\bytomcli> .\main.exe set-mining 0
stop mining success
PS C:\Users\user\go\src\github.com\bytom\cmd\bytomcli> .\main.exe is-mining
{
  "is_mining": false
}
PS C:\Users\user\go\src\github.com\bytom\cmd\bytomcli> .\main.exe set-mining 1
stop mining success
PS C:\Users\user\go\src\github.com\bytom\cmd\bytomcli> .\main.exe is-mining
{
  "is_mining": false
}

Reproduced on 3e4b5bdf92cefe223897b4ce2ad912ffcc6501a7

We will investigate on it, thanks

The order you executed the command line is wrong.
Here is the right order execute command line:

main.exe init --chain_id solonet --home $HOME/bytom/solonet
main.exe node --mining --home $HOME/bytom/solonet

You can also open mining option on dashboard

A year has passed mate.
But thanks