aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Make RPC server functions that read db thread safej-berman2022-04-051-14/+36
| | | | | | | | | | | | | | | | | | - grab an lmdb db_rtxn_guard to ensure consistent data from the db - fixed on_getblockhash error resp when requested height >= blockchain height - left functions that read shared memory untouched for now
* | | Merge pull request #8187luigi11112022-03-181-6/+0
|\ \ \ | | | | | | | | | | | | 9bde2db Fixes: Don't require --rpc-login with --rpc-access-control-origins #8168 (Jeffrey)
| * | | Fixes: Don't require --rpc-login with --rpc-access-control-origins #8168Jeffrey2022-02-191-6/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | This PR removes the requirement for --rpc-login to be specified if --rpc-access-control-origins is. This will allow public nodes to serve cross-origin requests. You can still use --rpc-login with --rpc-access-control-origins, but it is no longer mandatory. Original Issue: #8168
* / | rpc: add explicit restricted flag to /get_infotobtoht2022-02-072-1/+4
|/ /
* | Merge pull request #7943luigi11112021-11-301-2/+2
|\ \ | | | | | | | | | 3a90be4 rpc: don't set error code as status string (selsta)
| * | rpc: don't set error code as status stringselsta2021-09-151-2/+2
| |/
* | Merge pull request #8083luigi11112021-11-261-0/+15
|\ \ | | | | | | | | | e8e507f rpc: fix DoS vector in get_output_distribution (moneromooo-monero)
| * | rpc: fix DoS vector in get_output_distributionmoneromooo-monero2021-10-241-0/+15
| | | | | | | | | | | | | | | This will prevent people spending old pre-rct outputs using a stranger's node, which may be a good thing
* | | Add calcpow RPCHoward Chu2021-11-203-1/+62
|/ / | | | | | | Calculate PoW hash for a block candidate
* | Merge pull request #7960luigi11112021-10-111-2/+14
|\ \ | | | | | | | | | 2e8936f rpc: Fix get_transactions failing when not found (Nathan Dorfman)
| * | rpc: Fix get_transactions failing when not foundNathan Dorfman2021-09-201-2/+14
| |/
* | Merge pull request #7891luigi11112021-09-235-15/+189
|\ \ | |/ |/| | | dfee15e RPC and ZeroMQ APIs to support p2pool (SChernykh)
| * RPC and ZeroMQ APIs to support p2poolSChernykh2021-09-115-15/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the following: - "get_miner_data" to RPC API - "json-miner-data" to ZeroMQ subscriber contexts Both provide the necessary data to create a custom block template. They are used by p2pool. Data provided: - major fork version - current height - previous block id - RandomX seed hash - network difficulty - median block weight - coins mined by the network so far - mineable mempool transactions
* | Merge pull request #7616luigi11112021-09-092-3/+7
|\ \ | |/ |/| | | 4ced092 daemon: allow proxy configuration (anon, selsta, tobtoht)
| * daemon: allow proxy configurationanon2021-08-202-3/+7
| | | | | | | | | | Co-authored-by: selsta <selsta@sent.at> Co-authored-by: tobtoht <thotbot@protonmail.com>
* | rpc: source file extensions must be explicit (cmake warning)selsta2021-07-151-1/+1
| |
* | Merge pull request #7661luigi11112021-06-101-1/+4
|\ \ | | | | | | | | | 08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
| * | Improve cryptonote (block and tx) binary read performanceLee Clagett2021-01-231-1/+4
| |/
* | Merge pull request #7662luigi11112021-06-102-1/+5
|\ \ | |/ |/| | | 4da1112 rpc: send confirmations in get_transactions result (moneromooo-monero)
| * rpc: send confirmations in get_transactions resultmoneromooo-monero2021-04-152-1/+5
| | | | | | | | | | if the wallet does it, it would get a wrong result (possibly even negative) if its local chain is not synced up to the daemon's yet
* | Merge pull request #7384luigi11112021-04-162-23/+33
|\ \ | | | | | | | | | 494f2e1 rpc: fix some error return codes/status (moneromooo-monero)
| * | rpc: fix some error return codes/statusmoneromooo-monero2021-02-152-23/+33
| | | | | | | | | | | | | | | Some RPC return an error string in status, and the code must return true on error (with a status string).
* | | Merge pull request #7002luigi11112021-04-162-0/+2
|\ \ \ | |_|/ |/| | | | | 673c6d2 Reduce compilation time of epee/portable_storage_template_helper.h (mj-xmr)
| * | Reduce compilation time of epee/portable_storage_template_helper.hmj-xmr2021-03-282-0/+2
| | |
* | | Merge pull request #7326luigi11112021-03-295-18/+63
|\ \ \ | |/ / |/| | | | | cf266d6 bootstrap_daemon: proxy configuration support (xiphon)
| * | bootstrap_daemon: proxy configuration supportxiphon2021-01-215-19/+64
| | |
* | | Fix monerod --rpc-ssl disabledLee Clagett2021-01-281-1/+1
| | |
* | | Merge pull request #7366luigi11112021-03-201-2/+23
|\ \ \ | | | | | | | | | | | | 9867a91 Store RPC SSL key/cert for consistent authentication between runs (Lee Clagett)
| * | | Store RPC SSL key/cert for consistent authentication between runsLee Clagett2021-02-131-2/+23
| | |/ | |/|
* | | Merge pull request #6810luigi11112021-03-203-1/+169
|\ \ \ | | | | | | | | | | | | 19b2283 New add_aux_pow RPC to support merge mining (moneromooo-monero)
| * | | New add_aux_pow RPC to support merge miningmoneromooo-monero2021-02-093-1/+169
| |/ /
* / / Remove unused variables in monero codebaseKevin Barbour2021-02-091-2/+0
|/ / | | | | | | | | | | | | | | | | | | | | There are quite a few variables in the code that are no longer (or perhaps never were) in use. These were discovered by enabling compiler warnings for unused variables and cleaning them up. In most cases where the unused variables were the result of a function call the call was left but the variable assignment removed, unless it was obvious that it was a simple getter with no side effects.
* | Merge pull request #7112luigi11112021-01-151-2/+2
|\ \ | |/ |/| | | 47590fc rpc: report target height as 0 when synced (moneromooo-monero)
| * rpc: report target height as 0 when syncedmoneromooo-monero2020-12-101-2/+2
| | | | | | | | since it only makes sense when syncing, and it confuses people
* | rpc: limit the number of txes for get_blocks.binmoneromooo-monero2020-12-292-5/+5
| |
* | restrict public node checks a littlemoneromooo-monero2020-12-222-2/+13
| | | | | | | | | | do not include blocked hosts in peer lists or public node lists by default, warn about no https on clearnet and about untrusted peers likely being spies
* | rpc: add a busy_syncing field to get_infomoneromooo-monero2020-12-172-1/+4
| | | | | | | | true if and pretty much only if new blocks are being added
* | protocol: drop origin IP if a block fails to verify in sync modemoneromooo-monero2020-12-101-5/+1
|/ | | | | It would otherwise be possible for a peer to send bad blocks, then disconnect and reconnect again, escaping bans
* Merge pull request #7030Alexander Blair2020-12-042-1/+4
|\ | | | | | | 0363476ee rpc: get_info - add 'synchronized' field (xiphon)
| * rpc: get_info - add 'synchronized' fieldxiphon2020-11-192-1/+4
| |
* | Merge pull request #7024Alexander Blair2020-12-013-17/+21
|\ \ | | | | | | | | | aaf837cf5 rpc: skip non-synced bootstrap daemons in --no-sync mode too (xiphon)
| * | rpc: skip non-synced bootstrap daemons in --no-sync mode tooxiphon2020-11-173-17/+21
| |/
* | Merge pull request #6948Alexander Blair2020-12-013-3/+53
|\ \ | | | | | | | | | 65903d2cf Add rpc-restricted-bind-ip option (Howard Chu)
| * | Add rpc-restricted-bind-ip optionHoward Chu2020-10-293-3/+53
| |/ | | | | | | Fixes #6369
* | Merge pull request #7008luigi11112020-11-291-2/+2
|\ \ | | | | | | | | | 3247f11 Silence stupid warnings (Howard Chu)
| * | Silence stupid warningsHoward Chu2020-11-111-2/+2
| |/
* | Merge pull request #6960luigi11112020-11-291-0/+9
|\ \ | | | | | | | | | 5569a8e rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2P (xiphon)
| * | rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2Pxiphon2020-11-151-0/+9
| | |
* | | Merge pull request #6949luigi11112020-11-291-2/+8
|\ \ \ | | | | | | | | | | | | aad780b Fix CLI and unrestricted RPC relay_tx with stempool (Lee Clagett)
| * | | Fix CLI and unrestricted RPC relay_tx with stempoolLee Clagett2020-10-291-2/+8
| | |/ | |/|