monero_send_routine: replacing pass-by-ref since that was not the real issue

pull/11/head
Paul Shapiro 5 years ago
parent 707416165b
commit a143ee2037

@ -42,7 +42,6 @@
#include "monero_key_image_utils.hpp"
#include "monero_address_utils.hpp"
//
using namespace std;
using namespace crypto;
using namespace std;
using namespace boost;

@ -177,21 +177,21 @@ namespace monero_send_routine
// - Routine entrypoint
struct Async_SendFunds_Args
{ // TODO: add a way to pass native structures if available
const string &from_address_string;
const string &sec_viewKey_string;
const string &sec_spendKey_string;
const string &pub_spendKey_string;
const string &to_address_string;
string from_address_string;
string sec_viewKey_string;
string sec_spendKey_string;
string pub_spendKey_string;
string to_address_string;
optional<string> payment_id_string;
uint64_t sending_amount;
bool is_sweeping;
uint32_t simple_priority;
const send__get_unspent_outs_fn_type &get_unspent_outs_fn;
const send__get_random_outs_fn_type &get_random_outs_fn;
const send__submit_raw_tx_fn_type &submit_raw_tx_fn;
const send__status_update_fn_type &status_update_fn;
const send__error_cb_fn_type &error_cb_fn;
const send__success_cb_fn_type &success_cb_fn;
send__get_unspent_outs_fn_type get_unspent_outs_fn;
send__get_random_outs_fn_type get_random_outs_fn;
send__submit_raw_tx_fn_type submit_raw_tx_fn;
send__status_update_fn_type status_update_fn;
send__error_cb_fn_type error_cb_fn;
send__success_cb_fn_type success_cb_fn;
//
optional<uint64_t> unlock_time; // default 0
optional<cryptonote::network_type> nettype;

Loading…
Cancel
Save