aboutsummaryrefslogtreecommitdiff
path: root/src/rpc (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-05-20Merge pull request #9232luigi11112-13/+4
7194506 Blockchain: remove old fee calc logic (jeffro256)
2024-03-10Blockchain: remove old fee calc logicjeffro2562-13/+4
2024-02-24Enforce Tx unlock_time is Zero by Relay Rulejeffro2563-1/+15
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
2024-01-18Merge pull request #9079luigi11111-0/+201
eed975d Fix missing checks for IsObject in ZMQ jsonrpc reading (Lee Clagett)
2024-01-18Merge pull request #9077luigi11111-4/+4
2525200 serialization: remove container wrappers and serialize directly (jeffro256)
2024-01-18Merge pull request #9073luigi11112-9/+27
53e632b fix merge mining with more than one merge mined chain (Crypto City)
2024-01-18Merge pull request #9052luigi11111-7/+16
4acae11 Fix EAGAIN bug in ZMQ-RPC/ZMQ-PUB (Lee *!* Clagett)
2023-11-30fix merge mining with more than one merge mined chainCrypto City2-9/+27
reported by sech1
2023-11-28Fix missing checks for IsObject in ZMQ jsonrpc readingLee Clagett1-0/+201
2023-11-28serialization: remove container wrappers and serialize directlyjeffro2561-4/+4
Some downstream code (most notably PR https://github.com/UkoeHB/monero/pull/25) wants to use the src/serialization lib for storing information persistently. When one builds classes/machines wishing to serialize containers, they must use the `serializable_*` container classes. In this case, this makes the Seraphis library code unnecessarily tightly coupled with the src/serialization code since one cannot swap out their type of storage format without major refactoring of class field types. By serializing STL containers directly, we can abstract the serialization details away, making for much cleaner design. Also small bonus side effect of this change is that STL containers with custom Comparators, Allocators, and Hashers are serializable. `std::multimap` is added to the list of serializable containers. Depends upon https://github.com/monero-project/monero/pull/9069.
2023-11-06Merge pull request #8965luigi11111-0/+1
1e2e703 core_rpc_server: silence unused warnings (jeffro256)
2023-11-04Fix EAGAIN bug in ZMQ-RPC/ZMQ-PUBLee *!* Clagett1-7/+16
2023-10-25Merge pull request #8969luigi11111-20/+20
8190f25 KV_SERIALIZE: remove extraneous semicolons in DSL (jeffro256)
2023-10-25Merge pull request #8958luigi11113-0/+105
b0bf49a blockchain_db: add k-anonymity to txid fetching (jeffro256)
2023-08-17Merge pull request #8890luigi11112-2/+7
e8cac61 core_rpc_server: return ID of submitted block (jeffro256)
2023-08-10`KV_SERIALIZE`: remove extraneous semicolons in DSLjeffro2561-20/+20
Prereq of https://github.com/monero-project/monero/pull/8867
2023-08-01core_rpc_server: silence unused warningsjeffro2561-0/+1
2023-08-01blockchain_db: add k-anonymity to txid fetchingjeffro2563-0/+105
Read more about k-anonymity [here](https://en.wikipedia.org/wiki/K-anonymity). We implement this feature in the monero daemon for transactions by providing a "Txid Template", which is simply a txid with all but `num_matching_bits` bits zeroed out, and the number `num_matching_bits`. We add an operation to `BlockchainLMDB` called `get_txids_loose` which takes a txid template and returns all txids in the database (chain and mempool) that satisfy that template. Thus, a client can ask about a specific transaction from a daemon without revealing the exact transaction they are inquiring about. The client can control the statistical chance that other TXIDs (besides the one in question) match the txid template sent to the daemon up to a power of 2. For example, if a client sets their `num_matching_bits` to 5, then statistically any txid has a 1/(2^5) chance to match. With `num_matching_bits`=10, there is a 1/(2^10) chance, so on and so forth. Co-authored-by: ACK-J <60232273+ACK-J@users.noreply.github.com>
2023-07-02core_rpc_server: new file: rpc_ssl.fingerprintJeffrey Ryan1-1/+28
2023-06-30core_rpc_server: return ID of submitted blockjeffro2562-2/+7
2023-04-25Merge pull request #8780luigi11111-0/+1
4e16559 rpc: give reason when sending non-hex raw tx (jeffro256)
2023-04-25Merge pull request #8698luigi111131-31/+31
5b4fea7 Copyright: Update to 2023 (mj-xmr)
2023-03-18Merge pull request #8733luigi11112-1/+5
3771641 Add a size limit for tx_extra in tx pool (tevador)
2023-03-18Merge pull request #8076luigi11112-86/+196
c4af33e Enforce restricted # pool txs served via RPC + optimize chunked reqs (j-berman) 9752116 wallet2, RPC: Optimize RPC calls for periodic refresh from 3 down to 1 call (rbrunner7)
2023-03-17rpc: give reason when sending non-hex raw txjeffro2561-0/+1
2023-03-07Enforce restricted # pool txs served via RPC + optimize chunked reqsj-berman2-37/+34
- `/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-02-26Add a size limit for tx_extra in tx pooltevador2-1/+5
2023-02-06Merge pull request #8691luigi11111-1/+11
934b798 rpc: do not misidentify coinbase txes as pruned (moneromooo-monero)
2023-01-16Copyright: Update to 2023mj-xmr31-31/+31
Co-authored-by: plowsof <plowsof@protonmail.com> extra files
2023-01-09Refactored rx-slow-hash.cSChernykh1-3/+1
- 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
2023-01-01rpc: do not misidentify coinbase txes as prunedmoneromooo-monero1-1/+11
2022-12-30wallet2, RPC: Optimize RPC calls for periodic refresh from 3 down to 1 callrbrunner72-60/+173
2022-09-12wallet2: check wallet compatibility with daemon's hard fork versionj-berman2-1/+24
2022-09-09Merge pull request #8519luigi11111-0/+6
2639c4f rpc: skip bootstrap nodes that are lower than last checkpoint (selsta)
2022-09-09Merge pull request #8348luigi11111-4/+0
a4cb77f epee: update 'http_server_handlers_map2.h' macros to use fully qualified names (Jeffrey Ryan)
2022-09-06rpc: skip bootstrap nodes that are lower than last checkpointselsta1-0/+6
2022-06-13Revert "Merge pull request #7937"j-berman1-36/+14
This reverts commit 50410d1f7d04bf60053f2263410c39e81d3ddad1, reversing changes made to d054def63f9b8950fe20b2d8e841f5a9ae09418f.
2022-05-23epee: update 'http_server_handlers_map2.h' macros to use fully qualified namesJeffrey Ryan1-4/+0
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
2022-05-05Give better error messages when missing SSL filesJeffrey Ryan1-5/+16
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-04-21add a sanity check to RPC input data sizemoneromooo-monero1-0/+2
reported by m31007
2022-04-18Add Include statementsJeffrey1-0/+1
2022-04-10Fee changes from ArticMinemoneromooo-monero2-1/+13
https://github.com/ArticMine/Monero-Documents/blob/master/MoneroScaling2021-02.pdf with a change to use 1.7 instead of 2.0 for the max long term increase rate
2022-04-06Merge pull request #8197luigi111131-31/+35
da9aa1f Copyright: Update to 2022 (mj-xmr)
2022-04-06Merge pull request #7937luigi11111-14/+36
83bb027 Make RPC server functions that read db thread safe (j-berman)
2022-04-05Make RPC server functions that read db thread safej-berman1-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
2022-03-18Merge pull request #8187luigi11111-6/+0
9bde2db Fixes: Don't require --rpc-login with --rpc-access-control-origins #8168 (Jeffrey)
2022-03-04Copyright: Update to 2022mj-xmr31-31/+35
2022-02-19Fixes: Don't require --rpc-login with --rpc-access-control-origins #8168Jeffrey1-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
2022-02-07rpc: add explicit restricted flag to /get_infotobtoht2-1/+4
2021-11-30Merge pull request #7943luigi11111-2/+2
3a90be4 rpc: don't set error code as status string (selsta)
2021-11-26Merge pull request #8083luigi11111-0/+15
e8e507f rpc: fix DoS vector in get_output_distribution (moneromooo-monero)
2021-11-20Add calcpow RPCHoward Chu3-1/+62
Calculate PoW hash for a block candidate
2021-10-24rpc: fix DoS vector in get_output_distributionmoneromooo-monero1-0/+15
This will prevent people spending old pre-rct outputs using a stranger's node, which may be a good thing
2021-10-11Merge pull request #7960luigi11111-2/+14
2e8936f rpc: Fix get_transactions failing when not found (Nathan Dorfman)
2021-09-23Merge pull request #7891luigi11115-15/+189
dfee15e RPC and ZeroMQ APIs to support p2pool (SChernykh)
2021-09-20rpc: Fix get_transactions failing when not foundNathan Dorfman1-2/+14
2021-09-15rpc: don't set error code as status stringselsta1-2/+2
2021-09-11RPC and ZeroMQ APIs to support p2poolSChernykh5-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
2021-09-09Merge pull request #7616luigi11112-3/+7
4ced092 daemon: allow proxy configuration (anon, selsta, tobtoht)
2021-08-20daemon: allow proxy configurationanon2-3/+7
Co-authored-by: selsta <selsta@sent.at> Co-authored-by: tobtoht <thotbot@protonmail.com>
2021-07-15rpc: source file extensions must be explicit (cmake warning)selsta1-1/+1
2021-06-10Merge pull request #7661luigi11111-1/+4
08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
2021-06-10Merge pull request #7662luigi11112-1/+5
4da1112 rpc: send confirmations in get_transactions result (moneromooo-monero)
2021-04-16Merge pull request #7384luigi11112-23/+33
494f2e1 rpc: fix some error return codes/status (moneromooo-monero)
2021-04-16Merge pull request #7002luigi11112-0/+2
673c6d2 Reduce compilation time of epee/portable_storage_template_helper.h (mj-xmr)
2021-04-15rpc: send confirmations in get_transactions resultmoneromooo-monero2-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
2021-03-29Merge pull request #7326luigi11115-18/+63
cf266d6 bootstrap_daemon: proxy configuration support (xiphon)
2021-03-28Reduce compilation time of epee/portable_storage_template_helper.hmj-xmr2-0/+2
2021-02-15rpc: fix some error return codes/statusmoneromooo-monero2-23/+33
Some RPC return an error string in status, and the code must return true on error (with a status string).
2021-01-28Fix monerod --rpc-ssl disabledLee Clagett1-1/+1
2021-03-20Merge pull request #7366luigi11111-2/+23
9867a91 Store RPC SSL key/cert for consistent authentication between runs (Lee Clagett)
2021-03-20Merge pull request #6810luigi11113-1/+169
19b2283 New add_aux_pow RPC to support merge mining (moneromooo-monero)
2021-02-13Store RPC SSL key/cert for consistent authentication between runsLee Clagett1-2/+23
2021-02-09New add_aux_pow RPC to support merge miningmoneromooo-monero3-1/+169
2021-02-09Remove unused variables in monero codebaseKevin Barbour1-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.
2021-01-23Improve cryptonote (block and tx) binary read performanceLee Clagett1-1/+4
2021-01-21bootstrap_daemon: proxy configuration supportxiphon5-19/+64
2021-01-15Merge pull request #7112luigi11111-2/+2
47590fc rpc: report target height as 0 when synced (moneromooo-monero)
2020-12-29rpc: limit the number of txes for get_blocks.binmoneromooo-monero2-5/+5
2020-12-22restrict public node checks a littlemoneromooo-monero2-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
2020-12-17rpc: add a busy_syncing field to get_infomoneromooo-monero2-1/+4
true if and pretty much only if new blocks are being added
2020-12-10protocol: drop origin IP if a block fails to verify in sync modemoneromooo-monero1-5/+1
It would otherwise be possible for a peer to send bad blocks, then disconnect and reconnect again, escaping bans
2020-12-10rpc: report target height as 0 when syncedmoneromooo-monero1-2/+2
since it only makes sense when syncing, and it confuses people
2020-12-04Merge pull request #7030Alexander Blair2-1/+4
0363476ee rpc: get_info - add 'synchronized' field (xiphon)
2020-12-01Merge pull request #7024Alexander Blair3-17/+21
aaf837cf5 rpc: skip non-synced bootstrap daemons in --no-sync mode too (xiphon)
2020-12-01Merge pull request #6948Alexander Blair3-3/+53
65903d2cf Add rpc-restricted-bind-ip option (Howard Chu)
2020-11-29Merge pull request #7008luigi11111-2/+2
3247f11 Silence stupid warnings (Howard Chu)
2020-11-29Merge pull request #6960luigi11111-0/+9
5569a8e rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2P (xiphon)
2020-11-29Merge pull request #6949luigi11111-2/+8
aad780b Fix CLI and unrestricted RPC relay_tx with stempool (Lee Clagett)
2020-11-29Merge pull request #6895luigi11111-0/+7
b49f489 fix next_seed_height regression in getblocktemplate rpc (xnbya)
2020-11-29Merge pull request #6892luigi11111-1/+1
ad7ea2c core_rpc_server: on_send_raw_tx - fix bootstrap daemon mode check (xiphon)
2020-11-28Merge pull request #6849luigi11111-1/+1
f4b2382 rpc_private_headers declaration fix (malbit)
2020-11-19rpc: get_info - add 'synchronized' fieldxiphon2-1/+4
2020-11-17rpc: skip non-synced bootstrap daemons in --no-sync mode tooxiphon3-17/+21
2020-11-15rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2Pxiphon1-0/+9
2020-11-11Silence stupid warningsHoward Chu1-2/+2
2020-10-29Fix CLI and unrestricted RPC relay_tx with stempoolLee Clagett1-2/+8
2020-10-29Add rpc-restricted-bind-ip optionHoward Chu3-3/+53
Fixes #6369
2020-10-13fix next_seed_height regression in getblocktemplate rpcAlexis Enston1-0/+7
2020-10-13core_rpc_server: on_get_blocks - forward bootstrap daemon errorxiphon1-3/+11
2020-10-12core_rpc_server: on_send_raw_tx - fix bootstrap daemon mode checkxiphon1-1/+1
2020-09-27rpc_private_headers declaration fixMichal m@lbit Malicki1-1/+1
2020-09-15wallet2: adapt to deterministic unlock timeTheCharlatan4-1/+7
2020-09-07rpc: assume randomx from v13 onwardsmoneromooo-monero1-2/+2
2020-09-06Merge pull request #6111Riccardo Spagni1-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)
2020-08-31Merge pull request #6770luigi11111-1/+5
bdc6b10 Fix ZMQ pruned bulletproof transactions (vtnerd)
2020-08-27core: fix mining from a block that's not the current topmoneromooo-monero1-15/+11
2020-08-27Integrate CLSAGs into moneromoneromooo-monero1-1/+1
They are allowed from v12, and MLSAGs are rejected from v13.
2020-08-27Merge pull request #6763Alexander Blair1-43/+56
728ba38b1 rpc: always send raw txes through P2P (don't use bootstrap daemon) (xiphon)
2020-08-19Fix ZMQ pruned bulletproof transactionsLee Clagett1-1/+5
2020-08-17replace most boost serialization with existing monero serializationmoneromooo-monero2-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.
2020-08-16Merge pull request #6727Alexander Blair1-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)
2020-08-16Merge pull request #6722Alexander Blair1-1/+2
c1b03fb1a rpc: return empty txid get_outs rather than 00..00 when not requested (moneromooo-monero)
2020-08-16Merge pull request #6603Alexander Blair2-5/+1
4e2377995 Change ZMQ-JSON txextra to hex and remove unnecessary base fields (Lee Clagett)
2020-08-16rpc: always send raw txes through P2P (don't use bootstrap daemon)xiphon1-43/+56
It turns out that some remote (bootstrap) nodes silently drop / don't broadcast client's transactions.
2020-08-14Change ZMQ-JSON txextra to hex and remove unnecessary base fieldsLee Clagett2-5/+1
2020-08-14Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ fasterLee Clagett6-11/+15
2020-08-14Fix pruned tx for ZMQ's GetBlocksFastLee Clagett1-0/+1
2020-07-30rpc: reject wrong sized txidmoneromooo-monero1-6/+4
Reporter requested credit to be given to Decred
2020-07-25rpc: return empty txid get_outs rather than 00..00 when not requestedmoneromooo-monero1-1/+2
It's more obvious there's no txid, and it saves space
2020-07-19Merge pull request #6512Alexander Blair25-25/+25
5ef0607da Update copyright year to 2020 (SomaticFanatic)
2020-07-08Merge pull request #6627luigi11111-1/+1
4df8f9c rpc: fix loading rpc payment data from file (moneromooo-monero)
2020-07-08Merge pull request #6611luigi11111-1/+1
dc1a053 rpc: fix comparison of seconds vs microseconds (moneromooo-monero)
2020-07-08Merge pull request #6599luigi11111-1/+1
6e4a55b rpc: fix relay_tx error return mixup (moneromooo-monero) 9b86e14 functional_tests: add simple relay_tx test (moneromooo-monero)
2020-07-08Merge pull request #6584luigi11111-5/+5
78d435a rpc: don't display invalid json errors on default log level (moneromooo-monero)
2020-07-08Merge pull request #6574luigi11112-0/+12
7ebb351 rpc: lock access to the rpc payment object (moneromooo-monero)
2020-06-08Merge pull request #6576luigi11112-6/+46
4d3c2d0 rpc: add a sanity limit to a few RPC in restricted mode (moneromooo-monero)
2020-06-05rpc: fix loading rpc payment data from filemoneromooo-monero1-1/+1
Got broken after making one of those micro optimizations requested on review..
2020-05-31Fix boost <1.60 compilation and fix boost 1.73+ warningsLee Clagett1-2/+2
2020-05-31rpc: fix comparison of seconds vs microsecondsmoneromooo-monero1-1/+1
2020-05-28rpc: fix relay_tx error return mixupmoneromooo-monero1-1/+1
2020-05-23rpc: don't display invalid json errors on default log levelmoneromooo-monero1-5/+5
It's not something the user needs to know, and will display attacker controlled data
2020-05-20rpc: add a sanity limit to a few RPC in restricted modemoneromooo-monero2-6/+46
2020-05-19rpc: lock access to the rpc payment objectmoneromooo-monero2-0/+12
2020-05-06Update copyright year to 2020SomaticFanatic25-25/+25
Update copyright year to 2020
2020-05-06Merge pull request #6486luigi11111-1/+2
feee455 Fixes for ZMQ JSON-RPC endpoint names for raw tx (vtnerd)
2020-05-06Merge pull request #6481luigi11111-1/+1
119f706 rpc: fix 'use_bootstrap_daemon_if_necessary' return value (xiphon)
2020-05-04Adding ZMQ/Pub support for txpool_add and chain_main eventsLee Clagett6-53/+788
2020-04-29Fixes for ZMQ JSON-RPC endpoint names for raw txLee Clagett1-1/+2
2020-04-27rpc: fix 'use_bootstrap_daemon_if_necessary' return valuexiphon1-1/+1
2020-04-11Add byte_stream for zero-copy serialization, and add support in ZMQ-JSON.Lee Clagett5-67/+66
2020-05-01Merge pull request #6453luigi11112-1/+3
d2d3a81 bootstrap_daemon: fix missing virtual destructor and lambda capture (clang warning) (xiphon)
2020-04-15bootstrap_daemon: fix missing virtual destructor and lambda capture (clang ↵xiphon2-1/+3
warning)
2020-04-04Merge pull request #6361luigi11111-3/+12
68a6507 Fixed bug in ZMQ JSON-RPC method field (vtnerd)
2020-04-04Merge pull request #6357luigi11117-43/+304
42a7a4d daemon: auto public nodes - cache and prioritize most stable nodes (xiphon)
2020-04-04Merge pull request #6351luigi11111-2/+2
81c5943 Remove temporary std::string creation in some hex->bin calls (vtnerd) 5fcc23a Move hex->bin conversion to monero copyright files and with less includes (vtnerd) 3387f0e Reduce template bloat in hex->bin for ZMQ json (vtnerd)
2020-04-04Merge pull request #6342luigi11111-0/+5
82da832 rpc: Add check for too old timestamps in payment signatures. (glv2)
2020-04-04Merge pull request #6338luigi11111-3/+1
80d5320 Hash domain separation (SarangNoether)
2020-04-03Use byte_slice for sending zmq messages - removes data copy within zmqLee Clagett6-22/+33
2020-04-01Hash domain separationSarang Noether1-3/+1
2020-03-31cryptonote_basic: drop unused verification_context::m_not_rct fieldxiphon3-9/+0
2020-03-31Merge pull request #6325luigi11111-1/+4
3627e53 rpc: fix print_pool_sh not finding local txes (moneromooo-monero)
2020-03-31Merge pull request #6260luigi11112-1/+12
320bc84 rpc: add --rpc-payment-allow-free-loopback (moneromooo-monero)
2020-03-30Allow unrestricted rpc calls to get full txpool infoLee Clagett1-7/+12
2020-03-27Merge pull request #6289Alexander Blair1-1/+1
ffe7165e wallet: reroll fake outs selection on local tx_sanity_check failure (xiphon)
2020-03-26Adding Dandelion++ support to public networks:Lee Clagett3-11/+11
- New flag in NOTIFY_NEW_TRANSACTION to indicate stem mode - Stem loops detected in tx_pool.cpp - Embargo timeout for a blackhole attack during stem phase
2020-03-12rpc: add --rpc-payment-allow-free-loopbackmoneromooo-monero2-1/+12
This allows RPC coming from the loopback interface to not have to pay for service. This makes it possible to run an externally accessible RPC server for payment while also having a local RPC server that can be run unrestricted and payment free.
2020-03-12Merge pull request #6273Alexander Blair6-650/+353
0f78b06e Various improvements to the ZMQ JSON-RPC handling: (Lee Clagett)
2020-03-09Move hex->bin conversion to monero copyright files and with less includesLee Clagett1-2/+2
2020-03-05Various improvements to the ZMQ JSON-RPC handling:Lee Clagett6-650/+353
- Finding handling function in ZMQ JSON-RPC now uses binary search - Temporary `std::vector`s in JSON output now use `epee::span` to prevent allocations. - Binary -> hex in JSON output no longer allocates temporary buffer - C++ structs -> JSON skips intermediate DOM creation, and instead write directly to an output stream.
2020-02-28Merge pull request #6259Alexander Blair1-0/+1
69336931 rpc: fill miner_tx_hash again (moneromooo-monero)
2020-02-28Merge pull request #6242Alexander Blair1-6/+4
716012ca rpc: drop the obsolete and wrong "unpruned size" log (moneromooo-monero)
2020-02-28Merge pull request #6225Alexander Blair2-6/+19
987c3139 print_coinbase_tx_sum now supports 128 bits sums (moneromooo-monero)
2020-02-28Merge pull request #6215Alexander Blair4-1/+9
a2578892 --disable-ban-rpc option to prevent RPC users from banning (naughtyfox)
2020-02-28Merge pull request #6211Alexander Blair2-0/+4
5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
2020-02-28daemon: auto public nodes - cache and prioritize most stable nodesxiphon7-43/+304
2020-02-19Merge pull request #6198luigi11112-2/+4
5f2a32c daemon: run with -rpc-payment-address and --rpc-restricted-bind-port (moneromooo-monero)
2020-02-17rpc: Add check for too old timestamps in payment signatures.Guillaume Le Vaillant1-0/+5
2020-02-08rpc: fix print_pool_sh not finding local txesmoneromooo-monero1-1/+4
2020-02-06Merge pull request #6040Alexander Blair1-5/+4
2f8f3a94 rpc: base flush_cache request/response on the new base structs (moneromooo-monero)
2020-02-06Merge pull request #6035Alexander Blair2-6/+14
b90c4bc3 rpc: error out from get_info if the proxied call errors out (moneromooo-monero) fa16df99 make_test_signature: exit nicely on top level exception (moneromooo-monero) 054b2621 node_rpc_proxy: init some new rpc payment fields in invalidate (moneromooo-monero) d0faae2a rpc: init a few missing client_info members (moneromooo-monero) d56a483a rpc: do not propagate exceptions out of a dtor (moneromooo-monero) 3c849188 rpc: always set the update field in update on sucess (moneromooo-monero)
2020-01-24Merge pull request #6173Alexander Blair1-6/+10
8231c7cd rpc: fix bootstrap RPC payment RPC being made in raw JSON, not JSON RPC (moneromooo-monero) 81c26589 rpc: don't auto fail RPC needing payment in bootstrap mode (moneromooo-monero)
2020-01-24Merge pull request #6172Alexander Blair2-1/+6
d7cf8727 rpc: add received_timestamp for pool txes in gettransactions (moneromooo-monero)
2020-01-16Merge pull request #6134Alexander Blair1-8/+8
a7a40e28 Actually concatenate error strings. (Bert Peters)
2020-01-14wallet: reroll fake outs selection on local tx_sanity_check failurexiphon1-1/+1
2019-12-20rpc: fill miner_tx_hash againmoneromooo-monero1-0/+1
It was removed to save duplicated generation time, but it can be copied from another instance instead
2019-12-16rpc: drop the obsolete and wrong "unpruned size" logmoneromooo-monero1-6/+4
Since we now get pruned data in the first place, the "unpruned" data size will in fact be the pruned data size, leading to confusion
2019-12-12Merge pull request #6018luigi11113-0/+100
dce6f05 rpc: Only show version string if it matches expected pattern (ndorf) 3293780 daemon: Use rpc for 'version' command (ndorf)
2019-12-12print_coinbase_tx_sum now supports 128 bits sumsmoneromooo-monero2-6/+19
The tail emission will bring the total above 64 bits
2019-12-04--disable-ban-rpc option to prevent RPC users from banningnaughtyfox4-1/+9
2019-12-02rpc: add bad-blocks to flush_cache RPCmoneromooo-monero2-1/+5
Flushes m_invalid_blocks in Blockchain.
2019-11-29daemon: run with -rpc-payment-address and --rpc-restricted-bind-portmoneromooo-monero2-2/+4
2019-11-27rpc: error out from get_info if the proxied call errors outmoneromooo-monero1-2/+1
Coverity 205410
2019-11-27rpc: init a few missing client_info membersmoneromooo-monero1-0/+4
Coverity 205414
2019-11-27rpc: do not propagate exceptions out of a dtormoneromooo-monero1-4/+8
Coverity 205415
2019-11-27rpc: always set the update field in update on sucessmoneromooo-monero1-0/+1
Coverity 205416
2019-11-25rpc: fix bootstrap RPC payment RPC being made in raw JSON, not JSON RPCmoneromooo-monero1-5/+5
2019-11-22rpc: don't auto fail RPC needing payment in bootstrap modemoneromooo-monero1-1/+5
2019-11-22rpc: add received_timestamp for pool txes in gettransactionsmoneromooo-monero2-1/+6
2019-11-18Fixed bug in ZMQ JSON-RPC method fieldLee Clagett1-3/+12
2019-11-14Actually concatenate error strings.Bert Peters1-8/+8
2019-11-12rpc: Only show version string if it matches expected patternNathan Dorfman3-0/+100
2019-11-02Adding support for hidden (anonymity) txpoolLee Clagett2-12/+10
2019-11-02Merge pull request #6047Riccardo Spagni1-1/+3
ebc6ce44f cryptonote: untangle dependency from miner to blockchain (moneromooo-monero)
2019-10-31cryptonote: untangle dependency from miner to blockchainmoneromooo-monero1-1/+3
It causes link errors at least on mac
2019-10-28daemon: always use bootstrap daemon (if set) in '--no-sync' modexiphon1-3/+5
2019-10-27rpc: base flush_cache request/response on the new base structsmoneromooo-monero1-5/+4
2019-10-25Merge pull request #6017luigi11111-1/+1
5734686 rpc: Include tag in get_info version string (ndorf)
2019-10-26rpc: fix PRIx64 build error on some systemsmoneromooo-monero1-1/+1
2019-10-25rpc: add a flush_cache RPCmoneromooo-monero3-1/+34
This allows flushing internal caches (for now, the bad tx cache, which will allow debugging a stuck monerod after it has failed to verify a transaction in a block, since it would otherwise not try again, making subsequent log changes pointless)