diff options
| author | greatjourney589 <wangkyle589@gmail.com> | 2026-05-08 11:33:34 -0400 |
|---|---|---|
| committer | greatjourney589 <wangkyle589@gmail.com> | 2026-05-08 11:40:38 -0400 |
| commit | 878c781764e62d8616ae49a42baf05366a1d7336 (patch) | |
| tree | b5f6f156c0761f04cbc4bc82ac282611995ddbfc /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 3ca4c30f73fe22d16a46cfba122556437da3618d (diff) | |
| download | monzero-core-878c781764e62d8616ae49a42baf05366a1d7336.tar.gz monzero-core-878c781764e62d8616ae49a42baf05366a1d7336.tar.xz monzero-core-878c781764e62d8616ae49a42baf05366a1d7336.zip | |
zmq: apply restricted-mode privacy filtering to get_transaction_pool
Add an include_sensitive parameter to tx_memory_pool::get_pool_for_rpc
(and its core passthrough), mirroring the include_sensitive_data
parameter on the HTTP analog get_transactions_and_spent_keys_info.
When false, receive_time and last_relayed_time are zeroed using the
same masking already applied on the HTTP path.
The ZMQ handler in daemon_handler.cpp passes !m_restricted, so
--restricted-zmq-rpc callers now receive the same privacy-filtered view
as restricted HTTP callers instead of the unfiltered timing metadata
they previously got. Stem-phase txs continue to be excluded regardless
(relay_category::broadcasted filter unchanged).
Refs #10529.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index f50c9ad3f..4d7a454b2 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1548,9 +1548,9 @@ namespace cryptonote return m_mempool.get_transactions_and_spent_keys_info(tx_infos, key_image_infos, include_sensitive_data); } //----------------------------------------------------------------------------------------------- - bool core::get_pool_for_rpc(std::vector<cryptonote::rpc::tx_in_pool>& tx_infos, cryptonote::rpc::key_images_with_tx_hashes& key_image_infos) const + bool core::get_pool_for_rpc(std::vector<cryptonote::rpc::tx_in_pool>& tx_infos, cryptonote::rpc::key_images_with_tx_hashes& key_image_infos, bool include_sensitive) const { - return m_mempool.get_pool_for_rpc(tx_infos, key_image_infos); + return m_mempool.get_pool_for_rpc(tx_infos, key_image_infos, include_sensitive); } //----------------------------------------------------------------------------------------------- bool core::get_short_chain_history(std::list<crypto::hash>& ids, uint64_t& current_height) const |
