summaryrefslogtreecommitdiff
path: root/src/rpc
Commit message (Collapse)AuthorAgeFilesLines
* add a sanity check to RPC input data sizemoneromooo-monero2022-04-211-0/+2
| | | | reported by m31007
* [release-v0.17] Don't require --rpc-login with --rpc-access-control-originsJeffrey2022-03-251-6/+0
| | | | Same as PR #8187 for release v0.17
* Merge pull request #8084luigi11112021-11-261-0/+15
|\ | | | | | | a4954a9 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 #7997luigi11112021-11-095-19/+68
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 29c03e2 wallet_api: enable set_strict_default_file_permissions (tobtoht) 1c26d34 epee: add missing header (selsta) 1d451a6 depends: update zeromq package to 4.3.4 (selsta) 5180610 cmake: use CMAKE_CURRENT_LIST_DIR for git version (selsta) 5aae00a epee: avoid ADL selecting C++14 std::quoted (selsta) cf31136 cmake: set cpp14 standard (selsta) 945665f fix median overflow bug (koe) 908ecb3 LMDB: fix deadlock in resized detection (Howard Chu) a492c4e blockchain: fix pedantic assert (selsta) 1e663e8 Increase timeout for the mining test 4 times (to 240s) (mj-xmr) 4760f8b Wallet2: Update 'approximate_testnet_rolled_back_blocks' (rbrunner7) 76b6120 cmake: set required C/C++ standard to 11 (selsta) 3067987 Fix parallel make of OpenSSL (Howard Chu) 1219c74 add singapore.node.xmr.pm to seed nodes (lza_menace) 689dd52 net_node: add seed node (selsta) 95936a3 depends: update unwind, fix build with ubuntu 21.04 (selsta) e2c802f Only INFO log for short seed words with ALLOW_SHORT_WORDS active (rbrunner7) 14df8ad epee: don't log raw packet data (moneromooo-monero) 5fa7208 Mac: Enable on ARM, by not enforcing x86_64 (mj-xmr) fe6ab93 daemon: allow proxy configuration (anon) 52dcc03 bootstrap_daemon: proxy configuration support (xiphon) a6df656 wallet2: chunk get_outs.bin calls to avoid sanity limits (moneromooo-monero)
| * daemon: allow proxy configurationanon2021-10-062-3/+7
| | | | | | | | | | Co-authored-by: selsta <selsta@sent.at> Co-authored-by: tobtoht <thotbot@protonmail.com>
| * bootstrap_daemon: proxy configuration supportxiphon2021-10-065-18/+63
| |
* | Merge pull request #7959luigi11112021-10-111-2/+14
|\ \ | |/ |/| | | 209c031 rpc: Fix get_transactions failing when not found (Nathan Dorfman)
| * rpc: Fix get_transactions failing when not foundNathan Dorfman2021-09-201-2/+14
| |
* | RPC and ZeroMQ APIs to support p2poolSChernykh2021-09-215-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
* rpc: limit the number of txes for get_blocks.binmoneromooo-monero2020-12-292-5/+5
|
* Merge pull request #7174Alexander Blair2020-12-262-2/+13
|\ | | | | | | 5c3e84b6a restrict public node checks a little (moneromooo-monero)
| * 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: get_info - add 'synchronized' fieldxiphon2020-12-232-0/+3
|/
* 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 #7010Alexander Blair2020-12-013-3/+53
|\ | | | | | | a8cd073fc Add rpc-restricted-bind-ip option (Howard Chu)
| * Add rpc-restricted-bind-ip optionHoward Chu2020-11-113-3/+53
| | | | | | | | Fixes #6369
* | Merge pull request #7040Alexander Blair2020-11-243-17/+21
|\ \ | | | | | | | | | af4fb4729 rpc: skip non-synced bootstrap daemons in --no-sync mode too (xiphon)
| * | rpc: skip non-synced bootstrap daemons in --no-sync mode tooxiphon2020-11-233-17/+21
| |/
* / rpc: on_send_raw_tx - add missing CHECK_CORE_READYxiphon2020-11-221-0/+4
|/
* Merge pull request #6966luigi11112020-11-041-2/+8
|\ | | | | | | 42403c7 Fix CLI and unrestricted RPC relay_tx with stempool (vtnerd)
| * Fix CLI and unrestricted RPC relay_tx with stempoolLee Clagett2020-10-141-2/+8
| |
* | rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2Pxiphon2020-11-021-0/+5
|/
* Merge pull request #6894v0.17.1.0luigi11112020-10-131-0/+7
|\ | | | | | | e49ad98 fix next_seed_height regression in getblocktemplate rpc (xnbya)
| * fix next_seed_height regression in getblocktemplate rpcAlexis Enston2020-10-121-0/+7
| |
* | core_rpc_server: on_get_blocks - forward bootstrap daemon errorxiphon2020-10-131-3/+11
|/
* wallet2: adapt to deterministic unlock timeTheCharlatan2020-09-154-1/+7
|
* rpc: assume randomx from v13 onwardsmoneromooo-monero2020-09-071-2/+2
|
* Merge pull request #6111Riccardo Spagni2020-09-061-15/+11
|\ | | | | | | | | | | d20ff4f64 functional_tests: add a large (many randomx epochs) p2p reorg test (moneromooo-monero) 6a0b3b1f8 functional_tests: add randomx tests (moneromooo-monero) 9d42649d5 core: fix mining from a block that's not the current top (moneromooo-monero)
| * core: fix mining from a block that's not the current topmoneromooo-monero2020-08-271-15/+11
| |
* | Merge pull request #6770luigi11112020-08-311-1/+5
|\ \ | | | | | | | | | bdc6b10 Fix ZMQ pruned bulletproof transactions (vtnerd)
| * | Fix ZMQ pruned bulletproof transactionsLee Clagett2020-08-191-1/+5
| | |
* | | Integrate CLSAGs into moneromoneromooo-monero2020-08-271-1/+1
| |/ |/| | | | | They are allowed from v12, and MLSAGs are rejected from v13.
* | Merge pull request #6763Alexander Blair2020-08-271-41/+54
|\ \ | | | | | | | | | 728ba38b1 rpc: always send raw txes through P2P (don't use bootstrap daemon) (xiphon)
| * | rpc: always send raw txes through P2P (don't use bootstrap daemon)xiphon2020-08-161-41/+54
| | | | | | | | | | | | | | | It turns out that some remote (bootstrap) nodes silently drop / don't broadcast client's transactions.
* | | replace most boost serialization with existing monero serializationmoneromooo-monero2020-08-172-15/+71
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces the attack surface for data that can come from malicious sources (exported output and key images, multisig transactions...) since the monero serialization is already exposed to the outside, and the boost lib we were using had a few known crashers. For interoperability, a new load-deprecated-formats wallet setting is added (off by default). This allows loading boost format data if there is no alternative. It will likely go at some point, along with the ability to load those. Notably, the peer lists file still uses the boost serialization code, as the data it stores is define in epee, while the new serialization code is in monero, and migrating it was fairly hairy. Since this file is local and not obtained from anyone else, the marginal risk is minimal, but it could be migrated later if needed. Some tests and tools also do, this will stay as is for now.
* | Merge pull request #6727Alexander Blair2020-08-161-6/+4
|\ \ | | | | | | | | | | | | | | | | | | 13eee1d6a rpc: reject wrong sized txid (moneromooo-monero) 92e6b7df2 easylogging++: fix crash with reentrant logging (moneromooo-monero) 6dd95d530 epee: guard against exceptions in RPC handlers (moneromooo-monero) 90016ad74 blockchain: guard against exceptions in add_new_block/children (moneromooo-monero)
| * | rpc: reject wrong sized txidmoneromooo-monero2020-07-301-6/+4
| | | | | | | | | | | | Reporter requested credit to be given to Decred
* | | Merge pull request #6722Alexander Blair2020-08-161-1/+2
|\ \ \ | | | | | | | | | | | | c1b03fb1a rpc: return empty txid get_outs rather than 00..00 when not requested (moneromooo-monero)
| * | | rpc: return empty txid get_outs rather than 00..00 when not requestedmoneromooo-monero2020-07-251-1/+2
| |/ / | | | | | | | | | It's more obvious there's no txid, and it saves space
* | | Merge pull request #6603Alexander Blair2020-08-162-5/+1
|\ \ \ | | | | | | | | | | | | 4e2377995 Change ZMQ-JSON txextra to hex and remove unnecessary base fields (Lee Clagett)
| * | | Change ZMQ-JSON txextra to hex and remove unnecessary base fieldsLee Clagett2020-08-142-5/+1
| | | |
* | | | Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ fasterLee Clagett2020-08-146-11/+15
| | | |
* | | | Fix pruned tx for ZMQ's GetBlocksFastLee Clagett2020-08-141-0/+1
| |_|/ |/| |
* | | Adding ZMQ/Pub support for txpool_add and chain_main eventsLee Clagett2020-05-046-53/+788
| |/ |/|
* | Merge pull request #6512Alexander Blair2020-07-1925-25/+25
|\ \ | | | | | | | | | 5ef0607da Update copyright year to 2020 (SomaticFanatic)
| * | Update copyright year to 2020SomaticFanatic2020-05-0625-25/+25
| |/ | | | | | | Update copyright year to 2020
* | Merge pull request #6627luigi11112020-07-081-1/+1
|\ \ | | | | | | | | | 4df8f9c rpc: fix loading rpc payment data from file (moneromooo-monero)