fixed some pointer- and loop-based derps

This commit is contained in:
Thomas Winget 2014-06-06 15:45:21 -04:00
parent d22e458c6c
commit 72c3f36ca4
3 changed files with 6 additions and 1 deletions

View File

@ -84,7 +84,7 @@ namespace crypto
uint32_t val;
memcpy(&val, &src.data, 4);
memcpy(&val, (src.data) + (i * 4), 4);
w1 = val % n;
w2 = ((val / n) + w1) % n;

View File

@ -10,7 +10,10 @@
#include "account.h"
#include "warnings.h"
#include "crypto/crypto.h"
extern "C"
{
#include "crypto/blake256.h"
}
#include "cryptonote_core/cryptonote_basic_impl.h"
#include "cryptonote_core/cryptonote_format_utils.h"
using namespace std;

View File

@ -953,6 +953,8 @@ int main(int argc, char* argv[])
command_line::add_arg(desc_params, arg_daemon_port);
command_line::add_arg(desc_params, arg_command);
command_line::add_arg(desc_params, arg_log_level);
command_line::add_arg(desc_params, arg_recover );
command_line::add_arg(desc_params, arg_electrum_seed );
tools::wallet_rpc_server::init_options(desc_params);
po::positional_options_description positional_options;