mirror of
https://github.com/monero-project/monero.git
synced 2025-06-11 03:42:52 -04:00
make tx keys available to the user
They are also stored in the cache file, to be retrieved using a new get_tx_key command.
This commit is contained in:
parent
776b4fc91a
commit
6c995710d8
8 changed files with 77 additions and 10 deletions
|
@ -218,6 +218,7 @@ namespace tools
|
|||
|
||||
// populate response with tx hash
|
||||
res.tx_hash = boost::lexical_cast<std::string>(cryptonote::get_transaction_hash(ptx_vector.back().tx));
|
||||
res.tx_key = boost::lexical_cast<std::string>(ptx_vector.back().tx_key);
|
||||
return true;
|
||||
}
|
||||
catch (const tools::error::daemon_busy& e)
|
||||
|
@ -274,6 +275,7 @@ namespace tools
|
|||
for (auto & ptx : ptx_vector)
|
||||
{
|
||||
res.tx_hash_list.push_back(boost::lexical_cast<std::string>(cryptonote::get_transaction_hash(ptx.tx)));
|
||||
res.tx_key_list.push_back(boost::lexical_cast<std::string>(ptx.tx_key));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -318,6 +320,7 @@ namespace tools
|
|||
for (auto & ptx : ptx_vector)
|
||||
{
|
||||
res.tx_hash_list.push_back(boost::lexical_cast<std::string>(cryptonote::get_transaction_hash(ptx.tx)));
|
||||
res.tx_key_list.push_back(boost::lexical_cast<std::string>(ptx.tx_key));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue