aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_rpc_server.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-11-17 16:40:37 +0200
committerRiccardo Spagni <ric@spagni.net>2016-11-17 16:40:37 +0200
commitdbf2ab56c54b8be3d0f704f067c9bff79e90ed7e (patch)
treeb5479dc491d87800fdbf0bc6668bec431f402e02 /src/wallet/wallet_rpc_server.cpp
parentMerge pull request #1318 (diff)
parentwallet: return fee in transfer RPC (diff)
downloadmonero-dbf2ab56c54b8be3d0f704f067c9bff79e90ed7e.tar.xz
Merge pull request #1346
4eb7347 wallet: return fee in transfer RPC (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-rw-r--r--src/wallet/wallet_rpc_server.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index 92ad65c5b..f1c3faa3e 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -263,6 +263,7 @@ namespace tools
{
res.tx_key = epee::string_tools::pod_to_hex(ptx_vector.back().tx_key);
}
+ res.fee = ptx_vector.back().fee;
return true;
}
catch (const tools::error::daemon_busy& e)
@@ -325,6 +326,7 @@ namespace tools
{
res.tx_key_list.push_back(epee::string_tools::pod_to_hex(ptx.tx_key));
}
+ res.fee_list.push_back(ptx.fee);
}
return true;
@@ -373,6 +375,7 @@ namespace tools
{
res.tx_key_list.push_back(epee::string_tools::pod_to_hex(ptx.tx_key));
}
+ res.fee_list.push_back(ptx.fee);
}
return true;
@@ -434,6 +437,7 @@ namespace tools
{
res.tx_key_list.push_back(epee::string_tools::pod_to_hex(ptx.tx_key));
}
+ res.fee_list.push_back(ptx.fee);
}
return true;