aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-09Enforce restricted # pool txs served via RPC + optimize chunked reqs ↵j-berman1-33/+22
[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-09wallet2, RPC: Optimize RPC calls for periodic refresh from 3 down to 1 call ↵rbrunner71-60/+134
[release-v0.18]
2023-03-18Add a size limit for tx_extra in tx pooltevador1-0/+2
2022-09-12wallet2: check wallet compatibility with daemon's hard fork versionj-berman1-0/+4
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-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-monero1-1/+11
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 #8197luigi11111-1/+1
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-04Copyright: Update to 2022mj-xmr1-1/+1
2022-02-07rpc: add explicit restricted flag to /get_infotobtoht1-0/+1
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 Chu1-0/+37
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 #7891luigi11111-0/+37
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 p2poolSChernykh1-0/+37
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 #7616luigi11111-2/+4
4ced092 daemon: allow proxy configuration (anon, selsta, tobtoht)
2021-08-20daemon: allow proxy configurationanon1-2/+4
Co-authored-by: selsta <selsta@sent.at> Co-authored-by: tobtoht <thotbot@protonmail.com>
2021-06-10Merge pull request #7662luigi11111-0/+2
4da1112 rpc: send confirmations in get_transactions result (moneromooo-monero)
2021-04-16Merge pull request #7384luigi11111-23/+29
494f2e1 rpc: fix some error return codes/status (moneromooo-monero)
2021-04-16Merge pull request #7002luigi11111-0/+1
673c6d2 Reduce compilation time of epee/portable_storage_template_helper.h (mj-xmr)
2021-04-15rpc: send confirmations in get_transactions resultmoneromooo-monero1-0/+2
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 #7326luigi11111-10/+25
cf266d6 bootstrap_daemon: proxy configuration support (xiphon)
2021-03-28Reduce compilation time of epee/portable_storage_template_helper.hmj-xmr1-0/+1
2021-02-15rpc: fix some error return codes/statusmoneromooo-monero1-23/+29
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 #6810luigi11111-0/+120
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-monero1-0/+120
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-21bootstrap_daemon: proxy configuration supportxiphon1-10/+25
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-monero1-4/+4
2020-12-22restrict public node checks a littlemoneromooo-monero1-1/+8
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-monero1-0/+1
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 Blair1-0/+1
0363476ee rpc: get_info - add 'synchronized' field (xiphon)
2020-12-01Merge pull request #7024Alexander Blair1-11/+14
aaf837cf5 rpc: skip non-synced bootstrap daemons in --no-sync mode too (xiphon)
2020-12-01Merge pull request #6948Alexander Blair1-3/+15
65903d2cf Add rpc-restricted-bind-ip option (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-19rpc: get_info - add 'synchronized' fieldxiphon1-0/+1
2020-11-17rpc: skip non-synced bootstrap daemons in --no-sync mode tooxiphon1-11/+14
2020-11-15rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2Pxiphon1-0/+9
2020-10-29Fix CLI and unrestricted RPC relay_tx with stempoolLee Clagett1-2/+8
2020-10-29Add rpc-restricted-bind-ip optionHoward Chu1-3/+15
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-15wallet2: adapt to deterministic unlock timeTheCharlatan1-0/+2
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-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-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-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-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 Blair1-1/+1
5ef0607da Update copyright year to 2020 (SomaticFanatic)
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-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-monero1-6/+44
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2020-05-06Merge pull request #6481luigi11111-1/+1
119f706 rpc: fix 'use_bootstrap_daemon_if_necessary' return value (xiphon)
2020-05-01Merge pull request #6453luigi11111-1/+1
d2d3a81 bootstrap_daemon: fix missing virtual destructor and lambda capture (clang warning) (xiphon)
2020-04-27rpc: fix 'use_bootstrap_daemon_if_necessary' return valuexiphon1-1/+1
2020-04-15bootstrap_daemon: fix missing virtual destructor and lambda capture (clang ↵xiphon1-1/+1
warning)
2020-04-04Merge pull request #6357luigi11111-23/+27
42a7a4d daemon: auto public nodes - cache and prioritize most stable nodes (xiphon)
2020-03-31cryptonote_basic: drop unused verification_context::m_not_rct fieldxiphon1-2/+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 #6260luigi11111-1/+10
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 Clagett1-5/+5
- 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-monero1-1/+10
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-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 Blair1-6/+11
987c3139 print_coinbase_tx_sum now supports 128 bits sums (moneromooo-monero)
2020-02-28Merge pull request #6215Alexander Blair1-1/+3
a2578892 --disable-ban-rpc option to prevent RPC users from banning (naughtyfox)
2020-02-28Merge pull request #6211Alexander Blair1-0/+2
5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
2020-02-28daemon: auto public nodes - cache and prioritize most stable nodesxiphon1-23/+27
2020-02-19Merge pull request #6198luigi11111-1/+2
5f2a32c daemon: run with -rpc-payment-address and --rpc-restricted-bind-port (moneromooo-monero)
2020-02-08rpc: fix print_pool_sh not finding local txesmoneromooo-monero1-1/+4
2020-02-06Merge pull request #6035Alexander Blair1-6/+10
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 Blair1-0/+3
d7cf8727 rpc: add received_timestamp for pool txes in gettransactions (moneromooo-monero)
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-12print_coinbase_tx_sum now supports 128 bits sumsmoneromooo-monero1-6/+11
The tail emission will bring the total above 64 bits
2019-12-04--disable-ban-rpc option to prevent RPC users from banningnaughtyfox1-1/+3
2019-12-02rpc: add bad-blocks to flush_cache RPCmoneromooo-monero1-0/+2
Flushes m_invalid_blocks in Blockchain.
2019-11-29daemon: run with -rpc-payment-address and --rpc-restricted-bind-portmoneromooo-monero1-1/+2
2019-11-27rpc: error out from get_info if the proxied call errors outmoneromooo-monero1-2/+1
Coverity 205410
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-monero1-0/+3
2019-11-02Adding support for hidden (anonymity) txpoolLee Clagett1-9/+7
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-25Merge pull request #6017luigi11111-1/+1
5734686 rpc: Include tag in get_info version string (ndorf)
2019-10-25rpc: add a flush_cache RPCmoneromooo-monero1-1/+9
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)
2019-10-25daemon, wallet: new pay for RPC use systemmoneromooo-monero1-116/+641
Daemons intended for public use can be set up to require payment in the form of hashes in exchange for RPC service. This enables public daemons to receive payment for their work over a large number of calls. This system behaves similarly to a pool, so payment takes the form of valid blocks every so often, yielding a large one off payment, rather than constant micropayments. This system can also be used by third parties as a "paywall" layer, where users of a service can pay for use by mining Monero to the service provider's address. An example of this for web site access is Primo, a Monero mining based website "paywall": https://github.com/selene-kovri/primo This has some advantages: - incentive to run a node providing RPC services, thereby promoting the availability of third party nodes for those who can't run their own - incentive to run your own node instead of using a third party's, thereby promoting decentralization - decentralized: payment is done between a client and server, with no third party needed - private: since the system is "pay as you go", you don't need to identify yourself to claim a long lived balance - no payment occurs on the blockchain, so there is no extra transactional load - one may mine with a beefy server, and use those credits from a phone, by reusing the client ID (at the cost of some privacy) - no barrier to entry: anyone may run a RPC node, and your expected revenue depends on how much work you do - Sybil resistant: if you run 1000 idle RPC nodes, you don't magically get more revenue - no large credit balance maintained on servers, so they have no incentive to exit scam - you can use any/many node(s), since there's little cost in switching servers - market based prices: competition between servers to lower costs - incentive for a distributed third party node system: if some public nodes are overused/slow, traffic can move to others - increases network security - helps counteract mining pools' share of the network hash rate - zero incentive for a payer to "double spend" since a reorg does not give any money back to the miner And some disadvantages: - low power clients will have difficulty mining (but one can optionally mine in advance and/or with a faster machine) - payment is "random", so a server might go a long time without a block before getting one - a public node's overall expected payment may be small Public nodes are expected to compete to find a suitable level for cost of service. The daemon can be set up this way to require payment for RPC services: monerod --rpc-payment-address 4xxxxxx \ --rpc-payment-credits 250 --rpc-payment-difficulty 1000 These values are an example only. The --rpc-payment-difficulty switch selects how hard each "share" should be, similar to a mining pool. The higher the difficulty, the fewer shares a client will find. The --rpc-payment-credits switch selects how many credits are awarded for each share a client finds. Considering both options, clients will be awarded credits/difficulty credits for every hash they calculate. For example, in the command line above, 0.25 credits per hash. A client mining at 100 H/s will therefore get an average of 25 credits per second. For reference, in the current implementation, a credit is enough to sync 20 blocks, so a 100 H/s client that's just starting to use Monero and uses this daemon will be able to sync 500 blocks per second. The wallet can be set to automatically mine if connected to a daemon which requires payment for RPC usage. It will try to keep a balance of 50000 credits, stopping mining when it's at this level, and starting again as credits are spent. With the example above, a new client will mine this much credits in about half an hour, and this target is enough to sync 500000 blocks (currently about a third of the monero blockchain). There are three new settings in the wallet: - credits-target: this is the amount of credits a wallet will try to reach before stopping mining. The default of 0 means 50000 credits. - auto-mine-for-rpc-payment-threshold: this controls the minimum credit rate which the wallet considers worth mining for. If the daemon credits less than this ratio, the wallet will consider mining to be not worth it. In the example above, the rate is 0.25 - persistent-rpc-client-id: if set, this allows the wallet to reuse a client id across runs. This means a public node can tell a wallet that's connecting is the same as one that connected previously, but allows a wallet to keep their credit balance from one run to the other. Since the wallet only mines to keep a small credit balance, this is not normally worth doing. However, someone may want to mine on a fast server, and use that credit balance on a low power device such as a phone. If left unset, a new client ID is generated at each wallet start, for privacy reasons. To mine and use a credit balance on two different devices, you can use the --rpc-client-secret-key switch. A wallet's client secret key can be found using the new rpc_payments command in the wallet. Note: anyone knowing your RPC client secret key is able to use your credit balance. The wallet has a few new commands too: - start_mining_for_rpc: start mining to acquire more credits, regardless of the auto mining settings - stop_mining_for_rpc: stop mining to acquire more credits - rpc_payments: display information about current credits with the currently selected daemon The node has an extra command: - rpc_payments: display information about clients and their balances The node will forget about any balance for clients which have been inactive for 6 months. Balances carry over on node restart.
2019-10-24rpc: Include tag in get_info version stringNathan Dorfman1-1/+1
2019-10-24add a quick early out to get_blocks.bin when up to datemoneromooo-monero1-1/+15
2019-10-22Merge pull request #5964luigi11111-1/+0
fd48461 Print cdifficulty and don't serialize miner tx hash twice (Doy-lee)
2019-10-14Merge pull request #5933luigi11111-2/+2
3455efa ban peers sending bad pow outright (moneromooo-monero)
2019-10-08Merge pull request #5915luigi11111-5/+6
8330e77 monerod can now sync from pruned blocks (moneromooo-monero)
2019-10-07Print cdifficulty and don't serialize miner tx hash twiceDoyle1-1/+0
2019-09-27monerod can now sync from pruned blocksmoneromooo-monero1-5/+6
If the peer (whether pruned or not itself) supports sending pruned blocks to syncing nodes, the pruned version will be sent along with the hash of the pruned data and the block weight. The original tx hashes can be reconstructed from the pruned txes and theur prunable data hash. Those hashes and the block weights are hashes and checked against the set of precompiled hashes, ensuring the data we received is the original data. It is currently not possible to use this system when not using the set of precompiled hashes, since block weights can not otherwise be checked for validity. This is off by default for now, and is enabled by --sync-pruned-blocks
2019-09-25RandomX integrationHoward Chu1-2/+15
Support RandomX PoW algorithm
2019-09-25ban peers sending bad pow outrightmoneromooo-monero1-2/+2
PoW is expensive to verify, so be strict
2019-09-24Merge pull request #5916luigi11111-3/+3
7b076d5 p2p: fix bans taking port into account (moneromooo-monero)
2019-09-24Merge pull request #5877luigi11111-1/+1
2cd4fd8 Changed the use of boost:value_initialized for C++ list initializer (JesusRami) 4ad191f Removed unused boost/value_init header (whyamiroot) 928f4be Make null hash constants constexpr (whyamiroot)
2019-09-16p2p: fix bans taking port into accountmoneromooo-monero1-3/+3
2019-09-14Merge pull request #5872luigi11111-1/+2
495a7e5 rpc: don't include an address in mining_status when not mining (moneromooo-monero)
2019-09-08Merge pull request #5833luigi11111-0/+1
289d215 rpc: fix unitialized 'core_rpc_server::m_was_bootstrap_ever_used' (xiphon)
2019-09-04Merge pull request #5799luigi11111-33/+77
082730b daemon: automatic public nodes discovering and bootstrap daemon switching (xiphon)
2019-09-02Changed the use of boost:value_initialized for C++ list initializerJesus Ramirez1-1/+1
2019-08-28rpc: don't include an address in mining_status when not miningmoneromooo-monero1-1/+2
Best case is an address mined previously and it'll get returned, worst case it was never initialized in the first place
2019-08-27daemon: automatic public nodes discovering and bootstrap daemon switchingxiphon1-33/+77
2019-08-26wallet, rpc: add a release field to get_versionmoneromooo-monero1-0/+1
It does not leak much since you can make a fair guess by RPC version already, and some people want to avoid non release clients when using third parties' nodes (because they'd never lie about it)
2019-08-20rpc: fix unitialized 'core_rpc_server::m_was_bootstrap_ever_used'xiphon1-0/+1
2019-08-20Merge pull request #5696luigi11111-6/+10
fd60d05 daemon: fix print_pl only printing public zone peers (moneromooo-monero)
2019-08-19daemon: fix print_pl only printing public zone peersmoneromooo-monero1-6/+10
2019-08-19Merge pull request #5728luigi11111-1/+25
6560bfa rpc: get_block_template add optional extra_nonce (jtgrassie)
2019-08-15Merge pull request #5649luigi11111-0/+21
a182df2 Bans for RPC connections (hyc)
2019-08-14Merge pull request #5634luigi11111-1/+2
1488109 rpc: fix get_transactions getting v1 txes from the txpool (moneromooo-monero)
2019-08-14Merge pull request #5607luigi11111-0/+39
52cd2fa rpc: implement get_public_nodes command (xiphon)
2019-08-14Merge pull request #5525luigi11111-29/+46
0605406 daemon: sort alt chains by height (moneromooo-monero) 4228ee0 daemon: add optional arguments to alt_chain_info (moneromooo-monero) 880ebfd daemon: add more chain specific info in alt_chain_info (moneromooo-monero)
2019-08-14Merge pull request #5487luigi11111-0/+2
df83ed7 consensus: from v12, enforce >= 2 outputs (moneromooo-monero)
2019-07-31Add IPv6 supportThomas Winget1-1/+11
new cli options (RPC ones also apply to wallet): --p2p-bind-ipv6-address (default = "::") --p2p-bind-port-ipv6 (default same as ipv4 port for given nettype) --rpc-bind-ipv6-address (default = "::1") --p2p-use-ipv6 (default false) --rpc-use-ipv6 (default false) --p2p-require-ipv4 (default true, if ipv4 bind fails and this is true, will not continue even if ipv6 bind successful) --rpc-require-ipv4 (default true, description as above) ipv6 addresses are to be specified as "[xx:xx:xx::xx:xx]:port" except in the cases of the cli args for bind address. For those the square braces can be omitted.
2019-07-29rpc: implement get_public_nodes commandxiphon1-0/+39
2019-07-24Merge pull request #5623luigi11111-26/+76
b8cfa92 rpc: implement set_bootstrap_daemon method (xiphon)
2019-07-24Merge pull request #5582luigi11111-2/+6
fcfcc3a rpc: in/out peers can now return the setting's value (moneromooo-monero)
2019-07-24Merge pull request #5530luigi11111-16/+0
6abaaaa remove obsolete save_graph skeleton code (moneromooo-monero)
2019-07-24Merge pull request #5502luigi11111-1/+1
25a7cfd add a few checks where it seems appropriate (moneromooo-monero) 1a66a86 remove unused code (moneromooo-monero)
2019-07-16allow blocking whole subnetsmoneromooo-monero1-1/+57
2019-07-16p2p: store network address directly in blocked host listmoneromooo-monero1-4/+4
rather than their string representation
2019-07-03rpc: get_block_template add optional extra_nonceJethro Grassie1-1/+25
Circumvents the need to create a new blockhashing blob when you already know the data you want to set in the extra_nonce (so use this instead of reserve_size).
2019-06-20rpc: set sanity_check_failed to false when successfulstoffu1-0/+1
2019-06-16Bans for RPC connectionsHoward Chu1-0/+21
Make bans control RPC sessions too. And auto-ban some bad requests. Drops HTTP connections whenever response code is 500.
2019-06-14rpc: restrict the recent cutoff size in restricted RPC modemoneromooo-monero1-0/+9
2019-06-12rpc: fix get_transactions getting v1 txes from the txpoolmoneromooo-monero1-1/+2
It would try to get their prunable hash, but v1 txes don't have one
2019-06-10rpc: implement set_bootstrap_daemon methodxiphon1-26/+76
2019-06-09miner: fix double free of thread attributesston1th1-4/+1
issue: #5568
2019-06-01daemon: add more chain specific info in alt_chain_infomoneromooo-monero1-28/+45
2019-05-30rpc: in/out peers can now return the setting's valuemoneromooo-monero1-2/+6
2019-05-22Add ssl_options support to monerod's rpc mode.Lee Clagett1-80/+3
2019-05-10remove obsolete save_graph skeleton codemoneromooo-monero1-16/+0
2019-05-09rpc: fail update RPC when running offlinemoneromooo-monero1-0/+7
2019-05-09daemon: sort alt chains by heightmoneromooo-monero1-1/+1
2019-05-07Merge pull request #5510Riccardo Spagni1-2/+2
e9809382 fix wide difficulty conversion with some versions of boost (moneromooo-monero)
2019-05-07Merge pull request #5496Riccardo Spagni1-2/+2
0eb0d6b8 rpc: improve get_output_distribution (moneromooo-monero)
2019-05-01fix wide difficulty conversion with some versions of boostmoneromooo-monero1-2/+2
2019-04-29add a few checks where it seems appropriatemoneromooo-monero1-1/+1
2019-04-26change SSL certificate fingerprint whitelisting from SHA1 to SHA-256moneromooo-monero1-0/+9
SHA1 is too close to bruteforceable
2019-04-25rpc: improve get_output_distributionmoneromooo-monero1-2/+2
It can now handle small reorgs without having to rescan the whole blockchain. Also add a test for it.
2019-04-23consensus: from v12, enforce >= 2 outputsmoneromooo-monero1-0/+2
2019-04-16Merge pull request #5452Riccardo Spagni1-0/+1
c30d93fc rpc: add a pruned bool to the prune_blockchain call (moneromooo-monero)
2019-04-16Merge pull request #5448Riccardo Spagni1-7/+2
d009f6dd rpc: fix get_block_hashes.bin from wallet on pruned blockchain (moneromooo-monero) bb0ef5b1 blockchain: lock the blockchain while pruning (moneromooo-monero)
2019-04-16Merge pull request #5446Riccardo Spagni1-5/+9
7d79222f daemon: remove debug info (moneromooo-monero) 8fec0f98 functional_tests: add sweep_single test (moneromooo-monero) 9880d61b wallet_rpc_server: remove unused code (moneromooo-monero) 8a61b33d rpc: omit irrelevant fields for pool txes in gettransactions (moneromooo-monero) 56508524 rpc: add relayed in get_transaction output (moneromooo-monero) 82e510f1 rpc: set default log category in core_rpc_server.h (moneromooo-monero)
2019-04-16Merge pull request #5441Riccardo Spagni1-3/+1
b3648232 daemon: fix ratio not being floating point (moneromooo-monero) e1b097b9 core_rpc_server: remove dummy assigning int to bool (moneromooo-monero)
2019-04-16Merge pull request #5434Riccardo Spagni1-0/+9
ccb996af rpc: new sanity check on relayed transactions (moneromooo-monero)
2019-04-16Merge pull request #5428Riccardo Spagni1-1/+4
f3425f8d rpc.getblocktemplate: set reserved_offset to zero when reserve_size==0 (stoffu)
2019-04-16rpc: add a pruned bool to the prune_blockchain callmoneromooo-monero1-0/+1
2019-04-15rpc: fix get_block_hashes.bin from wallet on pruned blockchainmoneromooo-monero1-7/+2
We want to get all blocks here, even pruned ones
2019-04-15rpc: add relayed in get_transaction outputmoneromooo-monero1-5/+9
2019-04-15Merge pull request #5421Riccardo Spagni1-0/+1
e78cea74 rpc: fix off by one in get_height (moneromooo-monero)
2019-04-15Merge pull request #5402Riccardo Spagni1-1/+1
cbf32241 rpc: make wide_difficulty hexadecimal (moneromooo-monero)
2019-04-14core_rpc_server: remove dummy assigning int to boolmoneromooo-monero1-3/+1
Coverity 197653
2019-04-12rpc: new sanity check on relayed transactionsmoneromooo-monero1-0/+9
This will weed out some transactions with silly rings
2019-04-12rpc.getblocktemplate: set reserved_offset to zero when reserve_size==0stoffu1-1/+4
2019-04-11rpc: fix off by one in get_heightmoneromooo-monero1-0/+1
2019-04-11functional_tests: add more blockchain related testsmoneromooo-monero1-3/+20
Related to emission, reorgs, getting tx data back, output distribution and histogram
2019-04-11Merge pull request #5376Riccardo Spagni1-1/+3
c746f45d Add hash of top block to /getheight RPC (Howard Chu)
2019-04-11Merge pull request #5374Riccardo Spagni1-0/+1
a2561653 wallet: new option to start background mining (moneromooo-monero)
2019-04-07Pass SSL arguments via one class and use shared_ptr instead of referenceLee Clagett1-12/+19
2019-04-06Change default SSL to "enabled" if user specifies fingerprint/certificateLee Clagett1-7/+12
Currently if a user specifies a ca file or fingerprint to verify peer, the default behavior is SSL autodetect which allows for mitm downgrade attacks. It should be investigated whether a manual override should be allowed - the configuration is likely always invalid.
2019-04-06Change SSL certificate file list to OpenSSL builtin load_verify_locationLee Clagett1-17/+7
Specifying SSL certificates for peer verification does an exact match, making it a not-so-obvious alias for the fingerprints option. This changes the checks to OpenSSL which loads concatenated certificate(s) from a single file and does a certificate-authority (chain of trust) check instead. There is no drop in security - a compromised exact match fingerprint has the same worse case failure. There is increased security in allowing separate long-term CA key and short-term SSL server keys. This also removes loading of the system-default CA files if a custom CA file or certificate fingerprint is specified.
2019-04-06rpc: merge the two get_info implementationsmoneromooo-monero1-62/+3
2019-04-05rpc: make wide_difficulty hexadecimalmoneromooo-monero1-1/+1
This should be friendlier for clients which don't have bignum support