Make wallet address types match RPC call

This commit is contained in:
Zachary Michaels 2014-06-23 13:55:01 -04:00
parent 90b065e318
commit b36ca99bff
5 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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