added missing pass by ref for ptree in api_fetch_cb_fn arg

pull/22/head
Paul Shapiro 5 years ago
parent 966f137d30
commit 888098e861

@ -343,7 +343,7 @@ void _reenterable_construct_and_send_tx(
step1_retVals, step1_retVals,
constructionAttempt constructionAttempt
] ( ] (
property_tree::ptree res const property_tree::ptree &res
) -> void { ) -> void {
auto parsed_res = new__parsed_res__get_random_outs(res); auto parsed_res = new__parsed_res__get_random_outs(res);
if (parsed_res.err_msg != none) { if (parsed_res.err_msg != none) {
@ -405,7 +405,7 @@ void _reenterable_construct_and_send_tx(
step1_retVals, step1_retVals,
step2_retVals step2_retVals
] ( ] (
property_tree::ptree res const property_tree::ptree &res
) -> void { ) -> void {
// not actually expecting anything in a success response, so no need to parse // not actually expecting anything in a success response, so no need to parse
SendFunds_Success_RetVals success_retVals; SendFunds_Success_RetVals success_retVals;
@ -487,7 +487,7 @@ void monero_send_routine::async__send_funds(Async_SendFunds_Args args)
usable__sending_amount, usable__sending_amount,
sec_viewKey, sec_spendKey, pub_spendKey sec_viewKey, sec_spendKey, pub_spendKey
] ( ] (
property_tree::ptree res const property_tree::ptree &res
) -> void { ) -> void {
auto parsed_res = new__parsed_res__get_unspent_outs( auto parsed_res = new__parsed_res__get_unspent_outs(
res, res,

@ -56,7 +56,7 @@ namespace monero_send_routine
// Abstracted Send routine // Abstracted Send routine
// - Accessory types - Callbacks - Data fetch hooks // - Accessory types - Callbacks - Data fetch hooks
typedef std::function<void( typedef std::function<void(
const property_tree::ptree // opted not to send str but already parsed structure - this may not be optimal but makes it so that e.g. emscr_async_bridge doesn't have to send the response as an escaped JSON string nor redundantly parse/stringify const property_tree::ptree & // opted not to send str but already parsed structure - this may not be optimal but makes it so that e.g. emscr_async_bridge doesn't have to send the response as an escaped JSON string nor redundantly parse/stringify
)> api_fetch_cb_fn; )> api_fetch_cb_fn;
// //
struct LightwalletAPI_Req_GetUnspentOuts struct LightwalletAPI_Req_GetUnspentOuts

Loading…
Cancel
Save