forked from lthn/blockchain
Fixed #262(-do-pos-mining needs also rpc-bind-port specified to work)
This commit is contained in:
parent
75b998a6b0
commit
bd39dce7e6
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue