aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-26 22:32:34 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-26 22:32:34 +0200
commit169e6e9074519769afcbef6807567916e45784cb (patch)
tree420ea5d7211c7bd55768fc8b22cea106d63f5b6d /src/wallet/wallet2.cpp
parentMerge pull request #4547 (diff)
parentwallet_rpc_server: optionally return tx keys in sign_transfer (diff)
downloadmonero-169e6e9074519769afcbef6807567916e45784cb.tar.xz
Merge pull request #4552
67e76aa0 wallet_rpc_server: optionally return tx keys in sign_transfer (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index c5618375e..69daf774c 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -5612,6 +5612,10 @@ bool wallet2::sign_tx(unsigned_tx_set &exported_txs, std::vector<wallet2::pendin
ptx.construction_data = sd;
txs.push_back(ptx);
+
+ // add tx keys only to ptx
+ txs.back().tx_key = tx_key;
+ txs.back().additional_tx_keys = additional_tx_keys;
}
// add key images