Skip to content

Commit

Permalink
Fixed #262(-do-pos-mining needs also rpc-bind-port specified to work)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptozoidberg committed Apr 14, 2022
1 parent 75b998a commit bd39dce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/simplewallet/simplewallet.cpp
Expand Up @@ -2200,6 +2200,13 @@ int main(int argc, char* argv[])
}
else // if(command_line::has_arg(vm, tools::wallet_rpc_server::arg_rpc_bind_port))
{
if (command_line::get_arg(vm, arg_do_pos_mining))
{
// PoS mining can be turned on only in RPC server mode, please provide --rpc-bind-port to make this
fail_msg_writer() << "PoS mining can be turned on only in RPC server mode, please provide --rpc-bind-port=PORT_NO to enable staking in simplewallet";
return EXIT_FAILURE;
}

//runs wallet with console interface
sw->set_offline_mode(offline_mode);
r = sw->init(vm);
Expand Down

0 comments on commit bd39dce

Please sign in to comment.