1
0
Fork 0
forked from lthn/blockchain

Fixed #262(-do-pos-mining needs also rpc-bind-port specified to work)

This commit is contained in:
cryptozoidberg 2022-04-14 21:01:14 +02:00
parent 75b998a6b0
commit bd39dce7e6
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -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);