Commit Graph
743 Commits
Author SHA1 Message Date
selstaandsuch-gitea 809a263e11 rpc: hide sensitive txs from restricted block templates
(cherry picked from commit 1d45021cd0e452b60846b458701e612ab01db5c7)
2026-10-04 18:50:22 -04:00
selstaandsuch-gitea f26ac02df9 p2p, rpc: group public IPv6 connection limits by /64
(cherry picked from commit f277d328cf1f7e64423b5eb7dc0e21649f71e47a)
2026-10-04 18:50:22 -04:00
selstaandsuch-gitea 333e916fbc rpc: disable get_transaction_pool in restricted mode
(cherry picked from commit af88effd9a82ca715c12ce6ea021fdbc1cbb3102)
2026-10-04 18:50:22 -04:00
selstaandsuch-gitea 2ea94e6a21 rpc: hide ZMQ request contents in restricted mode
(cherry picked from commit dfb85dde03650430fa77541af17831f4bb9c5a2c)
2026-10-04 18:50:22 -04:00
selstaandsuch-gitea 1ead51defe rpc: recover from oversized ZMQ requests
(cherry picked from commit d1508916b44d08fa18dc8ac74e04e9f92dbfb2c1)
2026-10-04 18:50:21 -04:00
selstaandsuch-gitea 16045bb71d net: cap aggregate ZMQ receive size
(cherry picked from commit 4f6652f356f804403f46ecbbb8b90c1c03abbc64)
2026-10-04 18:50:20 -04:00
Guillaume Le Vaillantandsuch-gitea 83793218ce Show IPv6 addresses in connection list
(cherry picked from commit 528cbac17a6c372d1698c82e30df0fdfc78a5ccc)
2026-10-04 18:50:19 -04:00
selstaandsuch-gitea 2b502bb25b rpc: restrict get_alt_blocks_hashes
(cherry picked from commit 7de175802a48caa7b96e516138de6cdc914bdc76)
2026-10-04 18:50:19 -04:00
selstaandsuch-gitea d7c41d7ace rpc: reject invalid JSON-RPC ids in ZMQ requests
(cherry picked from commit a16f514c67e95cec4946dc83dbad04ed1baad023)
2026-10-04 18:50:19 -04:00
greatjourney589andsuch-gitea c3e982f2ad 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.

(cherry picked from commit 878c781764e62d8616ae49a42baf05366a1d7336)
2026-10-04 18:50:19 -04:00
selstaandsuch-gitea 3e3351ad24 zmq: switch to RapidJSON iterative parsing
(cherry picked from commit 9b46f84008ff807211f5ebb5f480e0610c5f54b9)
2026-10-04 18:50:19 -04:00
selstaandjwinterm 4db19d46ea zmq: add restricted checks to GetInfo
(cherry picked from commit f31bb18174950237ea6ed083614c37a04d33b46e)
2026-05-06 10:52:37 -04:00
Jeetrajandjwinterm 4f4ef45514 zmq: add missing restricted rpc check for get_block_headers_by_height
(cherry picked from commit a4efa1585e15b0f2fc54bc466e95fe7161788eb7)
2026-05-06 10:52:36 -04:00
selstaandjwinterm 07ab9bf66c zmq: add more missing restricted rpc checks
(cherry picked from commit 6e51bdcd8ef233814d81c2b953fa82f13cbbd442)
2026-05-05 18:20:53 -04:00
selstaandjwinterm ad1fb36b38 zmq: add missing restricted rpc check
(cherry picked from commit e6ce535b24c48104fb1cfebc1ae03686afe820f2)
2026-05-05 18:20:53 -04:00
hinto.janaiandjwinterm a5b524a030 rpc: restrict add_aux_pow
(cherry picked from commit 644a73867fd43420dccfe22a6cb421ac1aee7c54)
2026-05-05 18:20:53 -04:00
selstaandjwinterm 907d6dd58d zmq: add restricted rpc mode
(cherry picked from commit 7f2cfe9294ec1fa7bece2a8069114c1b6985650f)
2026-05-05 18:20:52 -04:00
j-bermanandwowario 4bfb5acd8f Daemon RPC: fix on_getblockhash error return on too high height 2025-10-10 08:47:20 +03:00
j-bermanandwowario 28e8844d3d Daemon RPC: add max_block_count field to /getblocks.bin 2025-09-29 06:25:45 +03:00
wowario 9f429cfc89 wownero skin pack 2025-09-19 21:01:45 +03:00
wowario 34bc7d2b63 show full version 2025-09-19 21:01:44 +03:00
wowario f7299beb66 vote by block 2025-09-19 21:01:43 +03:00
wowario 88e126db9c miner block header signing 2025-09-19 21:01:43 +03:00
wowario 2c544dee74 add nettype to diff algo 2025-09-19 21:01:43 +03:00
wowario b7fb278873 set pow variants 2025-09-19 21:01:41 +03:00
jeffro256 45152f9ef0 rpc: return error correctly on bad key image string
Because of the missing `return` statement, the status is set to "OK" later on in the method when it shouldn't be.

Thank you to ADA Logics and the MAGIC Monero Fund for reporting this!
2025-07-11 11:27:12 -05:00
Lee Clagett 9002681c1e Add new dynamic fees to ZMQ 2025-06-13 17:27:36 -04:00
tobtoht 3da68db978 Merge pull request #9740
008ba966d blockchain sync: reduce disk writes from 2 to 1 per tx (jeffro256)
2025-03-10 16:20:00 +00:00
jeffro256 008ba966da blockchain sync: reduce disk writes from 2 to 1 per tx 2025-03-10 01:32:08 -05:00
Lee *!* Clagett 01bcd52924 Fix build with boost ASIO 0.87. Support boost 1.66+ 2025-02-14 13:29:57 -05:00
Lee *!* Clagett 13ff355cf6 Set response limits on http server connections 2025-02-14 00:21:05 -05:00
Jeffrey RyanandLee *!* Clagett 89fa3ed68a epee: update 'http_server_handlers_map2.h' macros to use fully qualified names
quick patch which fixes the issue where if you use some macros from `http_server_handlers_map2.h` you have to be in the `epee` namespace or it doesn't compile. Now can remove `using namespace epee;` from header file `core_rpc_server.h`, which caused a couple of name qualifying mistakes
2025-02-13 16:24:48 -05:00
eversinc33 936046f71b validate ip parameter in set_bans rpc call 2025-01-14 21:16:28 +01:00
Lee *!* Clagett c5ad937cc1 Fix ZMQ DaemonInfo:
* top_block_hash was never set in handler
  * wide_difficulty was never sent in JSON
  * wide_cumulative_difficulty was never sent in JSON
2024-06-24 20:06:33 -04:00
jeffro256 dd47d03cf2 Enforce Tx unlock_time is Zero by Relay Rule [RELEASE]
Related to https://github.com/monero-project/research-lab/issues/78

Added a relay rule that enforces the `unlock_time` field is equal to 0 for non-coinbase transactions.

UIs changed:
* Removed `locked_transfer` and `locked_sweep_all` commands from `monero-wallet-cli`

APIs changed:
* Removed `unlock_time` parameters from `wallet2` transfer methods
* Wallet RPC transfer endpoints send error codes when requested unlock time is not 0
* Removed `unlock_time` parameters from `construct_tx*` cryptonote core functions

@tobtoht: undo rebase changes tx.dsts -> tx_dsts
2024-04-29 00:08:53 -05:00
luigi1111 8eab181fe1 Merge pull request #9080
47d8899 Fix missing checks for IsObject in ZMQ jsonrpc reading (Lee Clagett)
2024-01-18 18:03:43 -05:00
Lee Clagett 47d8899c90 Fix missing checks for IsObject in ZMQ jsonrpc reading 2023-11-28 18:05:15 -05:00
Lee *!* Clagett fe746dca4e Fix EAGAIN bug in ZMQ-RPC/ZMQ-PUB 2023-11-04 13:57:28 -04:00
luigi1111 894adef295 Merge pull request #8891
842478c core_rpc_server: return ID of submitted block (jeffro256)
2023-08-17 10:18:12 -05:00
j-bermanandrbrunner7 f137a35984 Enforce restricted # pool txs served via RPC + optimize chunked reqs [release-v0.18]
- `/getblocks.bin` respects the `RESTRICTED_TX_COUNT` (=100) when
returning pool txs via a restricted RPC daemon.
- A restricted RPC daemon includes a max of `RESTRICTED_TX_COUNT` txs
in the `added_pool_txs` field, and returns any remaining pool hashes
in the `remaining_added_pool_txids` field. The client then requests
the remaining txs via `/gettransactions` in chunks.
- `/gettransactions` no longer does expensive no-ops for ALL pool txs
if the client requests a subset of pool txs. Instead it searches for
the txs the client explicitly requests.
- Reset `m_pool_info_query_time` when a user:
  (1) rescans the chain (so the wallet re-requests the whole pool)
  (2) changes the daemon their wallets points to (a new daemon would
      have a different view of the pool)
- `/getblocks.bin` respects the `req.prune` field when returning
pool txs.
- Pool extension fields in response to `/getblocks.bin` are optional
with default 0'd values.
2023-07-09 08:38:18 +02:00
rbrunner7 23f782b211 wallet2, RPC: Optimize RPC calls for periodic refresh from 3 down to 1 call [release-v0.18] 2023-07-09 08:30:53 +02:00
jeffro256 842478c5a9 core_rpc_server: return ID of submitted block 2023-06-30 15:32:49 -05:00
tevadorandselsta 5900ed3706 Add a size limit for tx_extra in tx pool 2023-03-18 20:01:58 +01:00
SChernykh f698f2b708 Refactored rx-slow-hash.c
- Straight-forward call interface: `void rx_slow_hash(const char *seedhash, const void *data, size_t length, char *result_hash)`
- Consensus chain seed hash is now updated by calling `rx_set_main_seedhash` whenever a block is added/removed or a reorg happens
- `rx_slow_hash` will compute correct hash no matter if `rx_set_main_seedhash` was called or not (the only difference is performance)
- New environment variable `MONERO_RANDOMX_FULL_MEM` to force use the full dataset for PoW verification (faster block verification)
- When dataset is used for PoW verification, dataset updates don't stall other threads (verification is done in light mode then)
- When mining is running, PoW checks now also use dataset for faster verification
2022-12-14 07:21:00 +01:00
j-berman 864a78ee5f wallet2: check wallet compatibility with daemon's hard fork version 2022-09-12 21:23:08 -06:00
selsta 93db74a91e rpc: skip bootstrap nodes that are lower than last checkpoint 2022-09-06 22:09:39 +02:00
j-berman 8460fcc32b Revert "Merge pull request #7937"
This reverts commit 50410d1f7d, reversing
changes made to d054def63f.
2022-06-13 18:44:09 +01:00
Jeffrey Ryan 1ddb1ee819 Give better error messages when missing SSL files
While copying my data dir to another drive, I missed copying the rpc_ssl.key file b/c of the file permissions.
This change will give a much more clear, descriptive error in that scenario.
2022-05-05 21:48:19 -05:00
moneromooo-monero 9209880e9c add a sanity check to RPC input data size
reported by m31007
2022-04-21 22:22:56 +00:00
Jeffrey 40f02f9d73 Add Include statements 2022-04-18 09:55:20 -05:00