mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 07:52:25 +00:00
Merge pull request #4635
776aefda
tx_pool: revert #4592 and move bin2hex conversion to on_get_transaction_pool (stoffu)
This commit is contained in:
commit
313f16e83c
2 changed files with 3 additions and 1 deletions
|
@ -765,7 +765,7 @@ namespace cryptonote
|
||||||
m_blockchain.for_all_txpool_txes([&tx_infos, key_image_infos, include_sensitive_data](const crypto::hash &txid, const txpool_tx_meta_t &meta, const cryptonote::blobdata *bd){
|
m_blockchain.for_all_txpool_txes([&tx_infos, key_image_infos, include_sensitive_data](const crypto::hash &txid, const txpool_tx_meta_t &meta, const cryptonote::blobdata *bd){
|
||||||
tx_info txi;
|
tx_info txi;
|
||||||
txi.id_hash = epee::string_tools::pod_to_hex(txid);
|
txi.id_hash = epee::string_tools::pod_to_hex(txid);
|
||||||
txi.tx_blob = epee::string_tools::buff_to_hex_nodelimer(*bd);
|
txi.tx_blob = *bd;
|
||||||
transaction tx;
|
transaction tx;
|
||||||
if (!parse_and_validate_tx_from_blob(*bd, tx))
|
if (!parse_and_validate_tx_from_blob(*bd, tx))
|
||||||
{
|
{
|
||||||
|
|
|
@ -924,6 +924,8 @@ namespace cryptonote
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
m_core.get_pool_transactions_and_spent_keys_info(res.transactions, res.spent_key_images, !request_has_rpc_origin || !m_restricted);
|
m_core.get_pool_transactions_and_spent_keys_info(res.transactions, res.spent_key_images, !request_has_rpc_origin || !m_restricted);
|
||||||
|
for (tx_info& txi : res.transactions)
|
||||||
|
txi.tx_blob = epee::string_tools::buff_to_hex_nodelimer(txi.tx_blob);
|
||||||
res.status = CORE_RPC_STATUS_OK;
|
res.status = CORE_RPC_STATUS_OK;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue