fixed some pointer- and loop-based derps
This commit is contained in:
parent
d22e458c6c
commit
72c3f36ca4
3 changed files with 6 additions and 1 deletions
|
@ -84,7 +84,7 @@ namespace crypto
|
||||||
|
|
||||||
uint32_t val;
|
uint32_t val;
|
||||||
|
|
||||||
memcpy(&val, &src.data, 4);
|
memcpy(&val, (src.data) + (i * 4), 4);
|
||||||
|
|
||||||
w1 = val % n;
|
w1 = val % n;
|
||||||
w2 = ((val / n) + w1) % n;
|
w2 = ((val / n) + w1) % n;
|
||||||
|
|
|
@ -10,7 +10,10 @@
|
||||||
#include "account.h"
|
#include "account.h"
|
||||||
#include "warnings.h"
|
#include "warnings.h"
|
||||||
#include "crypto/crypto.h"
|
#include "crypto/crypto.h"
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
#include "crypto/blake256.h"
|
#include "crypto/blake256.h"
|
||||||
|
}
|
||||||
#include "cryptonote_core/cryptonote_basic_impl.h"
|
#include "cryptonote_core/cryptonote_basic_impl.h"
|
||||||
#include "cryptonote_core/cryptonote_format_utils.h"
|
#include "cryptonote_core/cryptonote_format_utils.h"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
|
@ -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_daemon_port);
|
||||||
command_line::add_arg(desc_params, arg_command);
|
command_line::add_arg(desc_params, arg_command);
|
||||||
command_line::add_arg(desc_params, arg_log_level);
|
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);
|
tools::wallet_rpc_server::init_options(desc_params);
|
||||||
|
|
||||||
po::positional_options_description positional_options;
|
po::positional_options_description positional_options;
|
||||||
|
|
Loading…
Reference in a new issue