aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc_command_executor.h
Commit message (Collapse)AuthorAgeFilesLines
* blockchain sync: reduce disk writes from 2 to 1 per txjeffro2562025-03-101-1/+1
|
* Boring Old DeletesJeffrey2022-04-181-1/+0
| | | | | | Here lies dozens of unused files. This commit is ONLY file deletions except for the removing of a couple of #includes and removing filenames from CmakeLists where appropriate.
* Copyright: Update to 2022mj-xmr2022-03-041-1/+1
|
* bootstrap_daemon: proxy configuration supportxiphon2021-01-211-1/+2
|
* Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
| | | | Update copyright year to 2020
* Merge pull request #6211Alexander Blair2020-02-281-1/+1
|\ | | | | | | 5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
| * rpc: add bad-blocks to flush_cache RPCmoneromooo-monero2019-12-021-1/+1
| | | | | | | | Flushes m_invalid_blocks in Blockchain.
* | Merge pull request #6096Alexander Blair2020-02-061-1/+1
|\ \ | | | | | | | | | a633f85d daemon: allow printing N blocks from the end of the chain (moneromooo-monero)
| * | daemon: allow printing N blocks from the end of the chainmoneromooo-monero2019-11-041-1/+1
| |/ | | | | | | | | It's a very common usage (for my anyway) and avoids the need to get the current height, paste, subtract one, etc
* | Merge pull request #6095Alexander Blair2020-02-061-1/+1
|\ \ | | | | | | | | | 7ba31191 daemon: add +meta print_tx parameter (moneromooo-monero)
| * | daemon: add +meta print_tx parametermoneromooo-monero2019-11-041-1/+1
| |/ | | | | | | prints size, weight and (if mined) height
* / daemon: Use rpc for "version" commandNathan Dorfman2019-11-121-0/+2
|/
* rpc: add a flush_cache RPCmoneromooo-monero2019-10-251-0/+2
| | | | | | | 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)
* daemon, wallet: new pay for RPC use systemmoneromooo-monero2019-10-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #5849luigi11112019-09-081-1/+1
|\ | | | | | | b51f4cd daemon: add pruned and publicrpc flags to print_pl (moneromooo-monero)
| * daemon: add pruned and publicrpc flags to print_plmoneromooo-monero2019-08-231-1/+1
| |
* | daemon: implement 'set_bootstrap_daemon' commandxiphon2019-08-231-0/+5
|/
* Merge pull request #5525luigi11112019-08-141-1/+1
|\ | | | | | | | | | | 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)
| * daemon: add optional arguments to alt_chain_infomoneromooo-monero2019-05-091-1/+1
| | | | | | | | | | >N limits display to alt chains with more than N blocks -N limits display to alt chains younger than N blocks
* | Merge pull request #5582luigi11112019-07-241-2/+2
|\ \ | | | | | | | | | fcfcc3a rpc: in/out peers can now return the setting's value (moneromooo-monero)
| * | rpc: in/out peers can now return the setting's valuemoneromooo-monero2019-05-301-2/+2
| |/
* | Merge pull request #5530luigi11112019-07-241-4/+0
|\ \ | | | | | | | | | 6abaaaa remove obsolete save_graph skeleton code (moneromooo-monero)
| * | remove obsolete save_graph skeleton codemoneromooo-monero2019-05-101-4/+0
| |/
* | allow blocking whole subnetsmoneromooo-monero2019-07-161-2/+4
| |
* | Add ssl_options support to monerod's rpc mode.Lee Clagett2019-05-221-0/+2
|/
* New interactive daemon command 'print_net_stats': Global traffic statsrbrunner72019-03-241-0/+2
|
* Merge pull request #5185Riccardo Spagni2019-03-171-0/+2
|\ | | | | | | 59478c80 daemon: new mining_status command (moneromooo-monero)
| * daemon: new mining_status commandmoneromooo-monero2019-03-091-0/+2
| |
* | Update 2019 copyrightbinaryFate2019-03-051-1/+1
|/
* Merge pull request #5080Riccardo Spagni2019-01-281-1/+1
|\ | | | | | | d294a577 daemon: extend 'print_pl' command, optional filter by type and limit (xiphon)
| * daemon: extend 'print_pl' command, optional filter by type and limitxiphon2019-01-181-1/+1
| |
* | Pruningmoneromooo-monero2019-01-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The blockchain prunes seven eighths of prunable tx data. This saves about two thirds of the blockchain size, while keeping the node useful as a sync source for an eighth of the blockchain. No other data is currently pruned. There are three ways to prune a blockchain: - run monerod with --prune-blockchain - run "prune_blockchain" in the monerod console - run the monero-blockchain-prune utility The first two will prune in place. Due to how LMDB works, this will not reduce the blockchain size on disk. Instead, it will mark parts of the file as free, so that future data will use that free space, causing the file to not grow until free space grows scarce. The third way will create a second database, a pruned copy of the original one. Since this is a new file, this one will be smaller than the original one. Once the database is pruned, it will stay pruned as it syncs. That is, there is no need to use --prune-blockchain again, etc.
* | daemon: add a +hex option to print_blockmoneromooo-monero2018-12-261-2/+2
|/
* add command pop_blocksJason Wong2018-11-281-0/+2
| | | | | | add new public method to Blockchain and update according to code review update after review: better lock/unlock, try catch and coding style
* alt_chain_info can now give more info about a particular alt chainmoneromooo-monero2018-06-261-1/+1
|
* Stagenetstoffu2018-03-051-1/+1
|
* Allow the number of incoming connections to be limitedErik de Castro Lopo2018-01-291-1/+3
| | | | | | It was already possible to limit outgoing connections. One might want to do this on home network connections with high bandwidth but low usage caps.
* Update 2018 copyrightxmr-eric2018-01-261-1/+1
|
* Merge pull request #2591Riccardo Spagni2017-11-061-1/+1
|\ | | | | | | 93ad1f87 Fix #2559: more flexible print_tx daemon command (binaryFate)
| * Fix #2559: more flexible print_tx daemon commandbinaryFate2017-10-081-1/+1
| |
* | daemon: use @N syntax to output_histogram for specific amountsmoneromooo-monero2017-10-071-1/+1
|/ | | | Makes debugging tx verification easier
* rpc: add new RPCs to get and set limitsMaxXor2017-09-191-5/+1
|
* Merge pull request #2149Riccardo Spagni2017-08-071-0/+2
|\ | | | | | | | | | | | | | | 158c3ecf core: thread most of handle_incoming_tx (moneromooo-monero) f57ee382 cryptonote_protocol: retry stale spans early (moneromooo-monero) 90df52e1 cryptonote_protocol: light cleanup (moneromooo-monero) 84e23156 cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages (moneromooo-monero) 5be43fcd cryptonote_protocol_handler: sync speedup (moneromooo-monero)
| * cryptonote_protocol_handler: sync speedupmoneromooo-monero2017-08-071-0/+2
| | | | | | | | | | | | | | | | A block queue is now placed between block download and block processing. Blocks are now requested only from one peer (unless starved). Includes a new sync_info coommand.
* | daemon: some more include cleanupmoneromooo-monero2017-08-021-4/+1
|/
* daemon: new relay_tx command and RPCmoneromooo-monero2017-04-021-0/+2
|
* daemon/rpc: updates command and RPCmoneromooo-monero2017-02-241-0/+2
| | | | | subcommands "check", "download", and "update". update is not yet implemented.
* Add print_pl_stats daemon commandMiguel Herranz2017-02-231-0/+2
|
* update copyright year, fix occasional lack of newline at line endRiccardo Spagni2017-02-211-1/+1
|
* More robust battery status handling.Dion Ahmetaj2017-02-161-1/+1
| | | | | | Added an extra path to check for linux power supply status. Added ignore battery option. If set to true, then when we can't figure out the power status, we'll assume the system is plugged in.