mirror of
https://github.com/monero-project/monero.git
synced 2025-01-28 18:56:31 +02:00
Make wallet address types match RPC call
This commit is contained in:
parent
90b065e318
commit
b36ca99bff
@ -22,7 +22,7 @@ public:
|
||||
virtual bool print_transaction(crypto::hash transaction_hash) = 0;
|
||||
virtual bool print_transaction_pool_long() = 0;
|
||||
virtual bool print_transaction_pool_short() = 0;
|
||||
virtual bool start_mining(cryptonote::account_public_address address, size_t num_threads) = 0;
|
||||
virtual bool start_mining(cryptonote::account_public_address address, uint64_t num_threads) = 0;
|
||||
virtual bool stop_mining() = 0;
|
||||
};
|
||||
|
||||
|
@ -154,7 +154,7 @@ bool t_command_parser_executor::start_mining(const std::vector<std::string>& arg
|
||||
{
|
||||
if(!args.size())
|
||||
{
|
||||
std::cout << "Please, specify wallet address to mine for: start_mining <addr> [threads=1]" << std::endl;
|
||||
std::cout << "Please specify a wallet address to mine for: start_mining <addr> [threads=1]" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -164,7 +164,7 @@ bool t_command_parser_executor::start_mining(const std::vector<std::string>& arg
|
||||
std::cout << "target account address has wrong format" << std::endl;
|
||||
return true;
|
||||
}
|
||||
size_t threads_count = 1;
|
||||
uint64_t threads_count = 1;
|
||||
if(args.size() > 2)
|
||||
{
|
||||
return false;
|
||||
|
@ -147,7 +147,7 @@ bool t_interactive_command_executor::print_transaction_pool_short() {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool t_interactive_command_executor::start_mining(cryptonote::account_public_address address, size_t num_threads) {
|
||||
bool t_interactive_command_executor::start_mining(cryptonote::account_public_address address, uint64_t num_threads) {
|
||||
boost::thread::attributes attrs;
|
||||
attrs.set_stack_size(THREAD_STACK_SIZE);
|
||||
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
|
||||
bool print_transaction_pool_short() override;
|
||||
|
||||
bool start_mining(cryptonote::account_public_address address, size_t num_threads) override;
|
||||
bool start_mining(cryptonote::account_public_address address, uint64_t num_threads) override;
|
||||
|
||||
bool stop_mining() override;
|
||||
};
|
||||
|
@ -67,7 +67,7 @@ bool t_rpc_command_executor::print_transaction_pool_short() {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool t_rpc_command_executor::start_mining(cryptonote::account_public_address address, size_t num_threads) {
|
||||
bool t_rpc_command_executor::start_mining(cryptonote::account_public_address address, uint64_t num_threads) {
|
||||
std::cout << "start mining" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user