aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Establish Monzero Phase 0 and inactive assets baselinemonzero-phase0-assets-prototype-20260815Monzero Build System5 hours1-2/+2
|
* blockchain sync: reduce disk writes from 2 to 1 per txjeffro2562025-03-101-6/+4
|
* p2p: allow comments in banlist filesjeffro2562024-12-131-0/+10
| | | | In-line comments explicitly explaining banned hosts/subnets might help assuage fears of some good banlists' arbitaryiness.
* Copyright: Update to 2022mj-xmr2022-03-041-1/+1
|
* Split epee/string_tools.h and encapsulate boost::lexical_castmj-xmr2021-04-161-0/+1
|
* Merge pull request #7002luigi11112021-04-161-0/+1
|\ | | | | | | 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-281-0/+1
| |
* | bootstrap_daemon: proxy configuration supportxiphon2021-01-211-6/+56
|/
* ban lists may now include subnetsmoneromooo-monero2020-12-221-3/+9
|
* daemon: the ban command can now load IPs from a file (ban @filename)moneromooo-monero2020-12-141-2/+40
|
* Merge pull request #6826luigi11112020-11-281-100/+200
|\ | | | | | | 83da867 Update error messages in daemon (tmoravec)
| * Update error messages in daemonTadeas Moravec2020-09-181-100/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When given a wrong argument, some daemon commands failed with "unknown command" error, instead of a meaningful error message. This patch brings consistency into the error messages. In several places, this patch removes relatively useful messages, and replaces them with more generic ones. E.g., - std::cout << "use: print_pl [white] [gray] [<limit>] [pruned] [publicrpc]" << std::endl; + std::cout << "Invalid syntax: Too many parameters. For more details, use the help command." << std::endl; There are two reasons for this: 1. Consistency. 2. Removing duplicates. The detailed information about the parameters is present in the help messages already. Having it in two places increases the risk that the messages would get out of date.
* | Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
|/ | | | Update copyright year to 2020
* Merge pull request #6211Alexander Blair2020-02-281-3/+17
|\ | | | | | | 5985c5af rpc: add bad-blocks to flush_cache RPC (moneromooo-monero)
| * rpc: add bad-blocks to flush_cache RPCmoneromooo-monero2019-12-021-3/+17
| | | | | | | | Flushes m_invalid_blocks in Blockchain.
* | Merge pull request #6096Alexander Blair2020-02-061-0/+10
|\ \ | | | | | | | | | 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-0/+10
| |/ | | | | | | | | 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-3/+6
|\ \ | | | | | | | | | 7ba31191 daemon: add +meta print_tx parameter (moneromooo-monero)
| * | daemon: add +meta print_tx parametermoneromooo-monero2019-11-041-3/+6
| |/ | | | | | | prints size, weight and (if mined) height
* / daemon: Use rpc for "version" commandNathan Dorfman2019-11-121-3/+1
|/
* rpc: add a flush_cache RPCmoneromooo-monero2019-10-251-0/+12
| | | | | | | 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/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2/+12
|\ | | | | | | b51f4cd daemon: add pruned and publicrpc flags to print_pl (moneromooo-monero)
| * daemon: add pruned and publicrpc flags to print_plmoneromooo-monero2019-08-231-2/+12
| |
* | daemon: implement 'set_bootstrap_daemon' commandxiphon2019-08-231-0/+14
|/
* Merge pull request #5525luigi11112019-08-141-2/+29
|\ | | | | | | | | | | 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-2/+29
| | | | | | | | | | >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-10/+16
|\ \ | | | | | | | | | 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-10/+16
| |/
* | Merge pull request #5530luigi11112019-07-241-12/+0
|\ \ | | | | | | | | | 6abaaaa remove obsolete save_graph skeleton code (moneromooo-monero)
| * | remove obsolete save_graph skeleton codemoneromooo-monero2019-05-101-12/+0
| |/
* | allow blocking whole subnetsmoneromooo-monero2019-07-161-0/+7
| |
* | Add ssl_options support to monerod's rpc mode.Lee Clagett2019-05-221-1/+2
|/
* New interactive daemon command 'print_net_stats': Global traffic statsrbrunner72019-03-241-0/+7
|
* Merge pull request #5185Riccardo Spagni2019-03-171-0/+5
|\ | | | | | | 59478c80 daemon: new mining_status command (moneromooo-monero)
| * daemon: new mining_status commandmoneromooo-monero2019-03-091-0/+5
| |
* | Update 2019 copyrightbinaryFate2019-03-051-1/+1
| |
* | miner: it can now autodetect the optimal number of threadsmoneromooo-monero2019-02-231-3/+10
|/
* Merge pull request #5080Riccardo Spagni2019-01-281-2/+27
|\ | | | | | | 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-2/+27
| |
* | Pruningmoneromooo-monero2019-01-221-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+15
|/
* add command pop_blocksJason Wong2018-11-281-0/+25
| | | | | | add new public method to Blockchain and update according to code review update after review: better lock/unlock, try catch and coding style
* Merge pull request #3973luigi11112018-07-191-3/+3
|\ | | | | | | 50af357 alt_chain_info can now give more info about a particular alt chain (moneromooo-monero)
| * alt_chain_info can now give more info about a particular alt chainmoneromooo-monero2018-06-261-3/+3
| |
* | Merge pull request #3757luigi11112018-06-201-2/+17
|\ \ | |/ |/| | | 6f9260e handle optional miner params better (cryptochangements34)
| * handle optional miner params bettercryptochangements342018-05-061-2/+17
| |
* | Merge pull request #3583luigi11112018-05-311-1/+1
|\ \ | |/ |/| | | 372ffeb Add a space in mining to testnet/stagenet string (cryptochangements34)
| * Add a space in mining to testnet/stagenet stringcryptochangements342018-04-081-1/+1
| |
* | Fix broken interactive daemon 'limit' commands plus RPC callsrbrunner72018-04-251-6/+0
| |