aboutsummaryrefslogtreecommitdiff
path: root/src/daemon (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2020-06-11daemon: remove time based "update needed" status stringmoneromooo-monero1-2/+1
2020-03-29daemon: fix print_net_stats RPC callsmoneromooo-monero1-2/+2
2020-02-24daemon: if no banned IPs print somethingsumogr1-3/+7
2020-02-17remove empty statementsInterchained1-1/+1
Cleaning up a little around the code base.
2019-12-12print_coinbase_tx_sum now supports 128 bits sumsmoneromooo-monero1-3/+3
The tail emission will bring the total above 64 bits
2019-12-02rpc: add bad-blocks to flush_cache RPCmoneromooo-monero4-6/+21
Flushes m_invalid_blocks in Blockchain.
2019-11-29daemon: run with -rpc-payment-address and --rpc-restricted-bind-portmoneromooo-monero2-5/+7
2019-11-12rpc: Only show version string if it matches expected patternNathan Dorfman1-1/+2
2019-11-12daemon: Use rpc for "version" commandNathan Dorfman3-3/+38
2019-11-04daemon: allow printing N blocks from the end of the chainmoneromooo-monero3-4/+43
It's a very common usage (for my anyway) and avoids the need to get the current height, paste, subtract one, etc
2019-11-04daemon: add +meta print_tx parametermoneromooo-monero3-4/+31
prints size, weight and (if mined) height
2019-10-29daemon: handle printing higher hash ratesmoneromooo-monero1-1/+1
2019-10-29always print peer IDs in the same formatmoneromooo-monero1-2/+2
2019-10-25rpc: add a flush_cache RPCmoneromooo-monero5-0/+50
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-monero6-12/+78
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-24daemon: print difficulty in decimal, as it used to bemoneromooo-monero1-8/+8
It got switched to hexadecimal when we went to 128 bit values
2019-10-18daemon: fix coinbase txes always being seen as prunedmoneromooo-monero1-1/+2
2019-10-18daemon: add miner tx hash in print_block outputmoneromooo-monero1-1/+2
2019-10-15daemon: fix print_pl synopsis missing recent optionsmoneromooo-monero1-1/+1
2019-10-07Print cdifficulty and don't serialize miner tx hash twiceDoyle1-0/+1
2019-09-16Removed Berkeley DB and db switching logicJesus Ramirez1-11/+0
2019-08-28simplewallet: lock console on inactivitymoneromooo-monero1-6/+2
2019-08-28daemon: print mining algorithm in mining_status even when not miningmoneromooo-monero1-1/+1
2019-08-23daemon: add pruned and publicrpc flags to print_plmoneromooo-monero3-7/+22
2019-08-23daemon: implement 'set_bootstrap_daemon' commandxiphon5-0/+64
2019-08-20daemon: fix merge error removing the "never seen before" timestamp checkmoneromooo-monero1-1/+1
2019-08-19daemon: fix print_pl only printing public zone peersmoneromooo-monero1-7/+6
2019-07-31Add IPv6 supportThomas Winget1-1/+1
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-30daemon: print 128bit diff properlystoffu1-17/+40
2019-07-16allow blocking whole subnetsmoneromooo-monero5-16/+60
2019-06-01add a command line option to disable ZMQ serverJethro Grassie4-14/+28
2019-06-01daemon: add more chain specific info in alt_chain_infomoneromooo-monero1-0/+44
2019-05-31daemon: display peer address type in print_cnmoneromooo-monero1-0/+15
2019-05-30rpc: in/out peers can now return the setting's valuemoneromooo-monero3-16/+26
2019-05-30add cumulative difficulty to diff commandwowario1-0/+1
2019-05-24daemon: fix "never seen before" time span display for peersmoneromooo-monero1-1/+1
2019-05-22Add ssl_options support to monerod's rpc mode.Lee Clagett8-5/+19
2019-05-10remove obsolete save_graph skeleton codemoneromooo-monero5-83/+0
2019-05-09daemon: add optional arguments to alt_chain_infomoneromooo-monero3-8/+47
>N limits display to alt chains with more than N blocks -N limits display to alt chains younger than N blocks
2019-05-09daemon: sort alt chains by heightmoneromooo-monero1-1/+3
2019-05-02blockchain: keep a rolling long term block weight medianmoneromooo-monero1-1/+1
2019-04-16daemon: fix absolute/relative log file test for windowsmoneromooo-monero1-5/+1
2019-04-15daemon: remove debug infomoneromooo-monero1-1/+1
2019-04-14daemon: fix ratio not being floating pointmoneromooo-monero1-1/+1
Coverity 197648
2019-04-13daemon: if a log file has a /, interpret it from the cwdmoneromooo-monero1-1/+6
rather than from data dir where it normally is. It makes things like --log-file ./foo.log behave as you'd expect.
2019-04-04wallet: new option to start background miningmoneromooo-monero1-4/+5
The setup-background-mining option can be used to select background mining when a wallet loads. The user will be asked the first time the wallet is created.
2019-04-01Allow pruning before v10moneromooo-monero1-1/+1
This check is now not needed anymore, and would prevent people from using --prune-blockchain when starting a new sync
2019-03-24New interactive daemon command 'print_net_stats': Global traffic statsrbrunner75-0/+76
2019-03-20daemon: init public_port in all ctorsmoneromooo-monero1-0/+2
Coverity 196596
2019-03-09daemon: new mining_status commandmoneromooo-monero5-1/+90
2019-03-05Update 2019 copyrightbinaryFate17-17/+17
2019-03-04ArticMine's new block weight algorithmmoneromooo-monero1-0/+1
This curbs runaway growth while still allowing substantial spikes in block weight Original specification from ArticMine: here is the scaling proposal Define: LongTermBlockWeight Before fork: LongTermBlockWeight = BlockWeight At or after fork: LongTermBlockWeight = min(BlockWeight, 1.4*LongTermEffectiveMedianBlockWeight) Note: To avoid possible consensus issues over rounding the LongTermBlockWeight for a given block should be calculated to the nearest byte, and stored as a integer in the block itself. The stored LongTermBlockWeight is then used for future calculations of the LongTermEffectiveMedianBlockWeight and not recalculated each time. Define: LongTermEffectiveMedianBlockWeight LongTermEffectiveMedianBlockWeight = max(300000, MedianOverPrevious100000Blocks(LongTermBlockWeight)) Change Definition of EffectiveMedianBlockWeight From (current definition) EffectiveMedianBlockWeight = max(300000, MedianOverPrevious100Blocks(BlockWeight)) To (proposed definition) EffectiveMedianBlockWeight = min(max(300000, MedianOverPrevious100Blocks(BlockWeight)), 50*LongTermEffectiveMedianBlockWeight) Notes: 1) There are no other changes to the existing penalty formula, median calculation, fees etc. 2) There is the requirement to store the LongTermBlockWeight of a block unencrypted in the block itself. This is to avoid possible consensus issues over rounding and also to prevent the calculations from becoming unwieldy as we move away from the fork. 3) When the EffectiveMedianBlockWeight cap is reached it is still possible to mine blocks up to 2x the EffectiveMedianBlockWeight by paying the corresponding penalty. Note: the long term block weight is stored in the database, but not in the actual block itself, since it requires recalculating anyway for verification.
2019-02-25daemon: add --public-node mode, RPC port propagation over P2Pxiphon7-8/+85
2019-02-23miner: it can now autodetect the optimal number of threadsmoneromooo-monero2-5/+12
2019-02-02epee: add SSL supportmoneromooo-monero1-0/+2
RPC connections now have optional tranparent SSL. An optional private key and certificate file can be passed, using the --{rpc,daemon}-ssl-private-key and --{rpc,daemon}-ssl-certificate options. Those have as argument a path to a PEM format private private key and certificate, respectively. If not given, a temporary self signed certificate will be used. SSL can be enabled or disabled using --{rpc}-ssl, which accepts autodetect (default), disabled or enabled. Access can be restricted to particular certificates using the --rpc-ssl-allowed-certificates, which takes a list of paths to PEM encoded certificates. This can allow a wallet to connect to only the daemon they think they're connected to, by forcing SSL and listing the paths to the known good certificates. To generate long term certificates: openssl genrsa -out /tmp/KEY 4096 openssl req -new -key /tmp/KEY -out /tmp/REQ openssl x509 -req -days 999999 -sha256 -in /tmp/REQ -signkey /tmp/KEY -out /tmp/CERT /tmp/KEY is the private key, and /tmp/CERT is the certificate, both in PEM format. /tmp/REQ can be removed. Adjust the last command to set expiration date, etc, as needed. It doesn't make a whole lot of sense for monero anyway, since most servers will run with one time temporary self signed certificates anyway. SSL support is transparent, so all communication is done on the existing ports, with SSL autodetection. This means you can start using an SSL daemon now, but you should not enforce SSL yet or nothing will talk to you.
2019-01-28rpc: fix internal daemon calls in restricted rpc getting partial datamoneromooo-monero1-3/+3
2019-01-22Pruningmoneromooo-monero5-13/+151
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.
2019-01-18daemon: extend 'print_pl' command, optional filter by type and limitxiphon4-8/+44
2018-12-26daemon: add a +hex option to print_blockmoneromooo-monero3-7/+23
2018-12-26daemon: print human friendly timestamp toomoneromooo-monero1-2/+2
2018-11-30daemon: print monero version at startup when calling a detached daemonmoneromooo-monero1-10/+10
So people who want a timstamp get a timestamp
2018-11-30daemon: stop miner before we bring the whole thing downmoneromooo-monero1-2/+0
This avoids the miner erroring out trying to submit blocks to a core that's already shut down (and avoids pegging the CPU while we're busy shutting down).
2018-11-28add command pop_blocksJason Wong5-0/+62
add new public method to Blockchain and update according to code review update after review: better lock/unlock, try catch and coding style
2018-11-23remove some unused codemoneromooo-monero1-16/+1
Found by codacy.com
2018-11-16Don't cache nettype in core_rpc_server use m_coredoy-lee2-7/+3
This can go out of sync with m_core's nettype if you run in fakechain mode since entering fakechain mode is done through code not the command line and core_rpc_server only looks at the command line to figure out the nettype.
2018-11-01daemon: use msg_writer, not cout, to display informationmoneromooo-monero1-4/+4
2018-10-22blocks: use auto-generated .c files instead of 'LD -r -b binary'xiphon2-19/+10
2018-10-19daemon: fix base fee stating /kB even when it is per bytemoneromooo-monero1-1/+13
2018-10-18daemon: Show mining addressRicardo de Vries1-1/+1
2018-10-15daemon: fix reading past stack on exitmoneromooo-monero1-5/+10
2018-10-12daemon: do not run complex code in a signal handlermoneromooo-monero1-1/+8
instead, delegate the work to a one off thread and notify it from the signal handler
2018-10-08Revert "Merge pull request #4472"Riccardo Spagni2-10/+19
This reverts commit 79d46c4d551a9b1261801960095bf4d24967211a, reversing changes made to c9fc61dbb56cca442c775faa2554a7460879b637.
2018-10-04blocks: use auto-generated .c files instead of 'LD -r -b binary'xiphon2-19/+10
2018-10-02daemon: do not display uptime when not knownmoneromooo-monero1-5/+15
2018-09-29Fix 32bit depends buildsTheCharlatan1-0/+2
Add architecture flags when cmake invokes gcc manually. Add 32bit to Travis.
2018-09-11v8: per byte fee, pad bulletproofs, fixed 11 ring sizemoneromooo-monero1-12/+15
2018-09-10Add support for apple and arm buildingTheCharlatan1-1/+3
Add pcsc-lite to linux builds Fixup windows icu4c linking with depends, the static libraries have an 's' appended to them Compiling depends arm-linux-gnueabihf will allow you to compile armv6zk monero binaries
2018-09-05daemon: request no PoW hashes we don't need when asking for blocksmoneromooo-monero1-0/+2
This fixes the horrendous slowdown in bc_dyn_stats
2018-08-31rpc: allow to pass RPC login via RPC_LOGIN env varDusan Klinec1-2/+5
- passing by parameter is insecure as it is shown in the process list
2018-07-24daemon.print_bc: don't print difficulty twicestoffu1-1/+1
2018-06-29add --regtest and --fixed-difficulty for regression testingvictorsintnicolaas2-3/+5
on_generateblocks RPC call combines functionality from the on_getblocktemplate and on_submitblock RPC calls to allow rapid block creation. Difficulty is set permanently to 1 for regtest. Makes use of FAKECHAIN network type, but takes hard fork heights from mainchain Default reserve_size in generate_blocks RPC call is now 1. If it is 0, the following error occurs 'Failed to calculate offset for'. Queries hard fork heights info of other network types
2018-06-28remove epee from link lines where it's redundantmoneromooo-monero1-1/+0
For some reason, this confuses and kills ASAN on startup as it thinks const uint8_t ipv4_network_address::ID is defined multiple times.
2018-06-26alt_chain_info can now give more info about a particular alt chainmoneromooo-monero4-10/+31
2018-06-20daemon: show a bit more info with print_blockstoffu1-1/+3
2018-06-13mlog: --max-log-files to set the max number of rotated log filesstoffu2-1/+7
2018-05-31daemon: fix readline interfering with std::cerr usagemoneromooo-monero1-0/+3
Once readline is initialized, std::cerr's operator<< will output a 0xff byte for unknown reasons.
2018-05-26fix build with GCC 8.1.0moneromooo-monero1-1/+1
2018-05-19daemon: request unpruned transactions for print_txmoneromooo-monero1-0/+1
instead of uninitialized
2018-05-06handle optional miner params bettercryptochangements341-2/+17
2018-04-28daemon: print peer state in sync_infomoneromooo-monero1-1/+1
It's often relevant
2018-04-25Fix broken interactive daemon 'limit' commands plus RPC callsrbrunner72-12/+6
2018-04-14daemon: read config file before reading any other argsstoffu1-23/+22
2018-04-13daemon: add a version commandmoneromooo-monero3-0/+14
2018-04-08Add a space in mining to testnet/stagenet stringcryptochangements341-1/+1
2018-04-05Core RPC: optionally add POW hash to block_header_responsestoffu1-0/+3
2018-03-27fix lambda compile error on openbsdmoneromooo-monero1-3/+3
2018-03-15Fix typos in various filesDimitris Apostolou1-1/+1
2018-03-05Stagenetstoffu8-40/+74
2018-02-16options: add testnet option dependencieswhythat2-13/+27
2018-02-16options: remove testnet-* optionswhythat4-32/+10
2018-01-30Bootstrap daemonstoffu1-4/+21
2018-01-29Fixed typos and wording tweaksMaxithi1-9/+9
2018-01-29Fix in_peers/out_peers RPC operationsErik de Castro Lopo1-2/+2
Original implementations could never have worked.
2018-01-29Allow the number of incoming connections to be limitedErik de Castro Lopo5-2/+61
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.
2018-01-26Update 2018 copyrightxmr-eric17-17/+17
2018-01-25daemon: don't drop RPC with busy error when running offlinemoneromooo-monero2-3/+3
2018-01-20daemon: exit with 0 when successfulmoneromooo-monero1-1/+1
2018-01-11Keep readline optionalJethro Grassie1-1/+1
2017-12-31Add misc hardening flags to the cmake machinerymoneromooo-monero1-2/+2
See https://wiki.debian.org/Hardening#User_Space
2017-12-27daemon+simplewallet: given an unknown command, show itstoffu1-1/+1
2017-12-18use const refs in for loops for non tiny typesmoneromooo-monero1-1/+1
2017-12-18catch const exceptionsmoneromooo-monero1-3/+3
2017-12-17daemon: print num txes in print_bcmoneromooo-monero1-1/+1
2017-12-17daemon: remove some superfluous includesmoneromooo-monero4-5/+2
2017-12-16cryptonote_core does not depend on p2p anymoremoneromooo-monero3-2/+15
As a followon side effect, this makes a lot of inline code included only in particular cpp files (and instanciated when necessary.
2017-12-16move includes around to lessen overall loadmoneromooo-monero4-2/+3
2017-11-26Added command descriptionsCifrado2-47/+90
2017-11-17RPC: allow binding of restricted port in addition to core portTim L2-25/+43
2017-11-16daemon & simplewallet: don't set max-concurrency when unspecifiedstoffu1-1/+1
2017-11-14Do not build against epee_readline if it was not builtHoward Chu1-1/+1
2017-11-14split off readline code into epee_readlinemoneromooo-monero1-0/+2
2017-11-14link against readline only for monerod and wallet-wallet-{rpc,cli}moneromooo-monero1-0/+1
2017-11-14wallet: rejig to avoid prompting in wallet2moneromooo-monero1-1/+6
wallet2 is a library, and should not prompt for stdin. Instead, pass a function so simplewallet can prompt on stdin, and a GUI might display a window, etc.
2017-11-14move cryptonote command line options to cryptonote_coremoneromooo-monero2-6/+3
Those have no reason to be in a generic module
2017-11-14remove "using namespace std" from headersmoneromooo-monero1-1/+1
It's nasty, and actually breaks on Solaris, where if.h fails to build due to: struct map *if_memmap;
2017-11-10Print msg upon success for commands that were silentbinaryFate1-0/+4
2017-11-08Protect node privacy by proper filtering in restricted-mode RPC answersbinaryFate1-3/+3
This patch allows to filter out sensitive information for queries that rely on the pool state, when running in restricted mode. This filtering is only applied to data sent back to RPC queries. Results of inline commands typed locally in the daemon are not affected. In practice, when running with `--restricted-rpc`: * get_transaction_pool will list relayed transactions with the fields "last relayed time" and "received time" set to zero. * get_transaction_pool will not list transaction that have do_not_relay set to true, and will not list key images that are used only for such transactions * get_transaction_pool_hashes.bin will not list such transaction * get_transaction_pool_stats will not count such transactions in any of the aggregated values that are computed The implementation does not make filtering the default, so developers should be mindful of this if they add new RPC functionality. Fixes #2590.
2017-11-06track double spending in the txpoolmoneromooo-monero1-1/+3
Transactions in the txpool are marked when another transaction is seen double spending one or more of its inputs. This is then exposed wherever appropriate. Note that being marked with this "double spend seen" flag does NOT mean this transaction IS a double spend and will never be mined: it just means that the network has seen at least another transaction spending at least one of the same inputs, so care should be taken to wait for a few confirmations before acting upon that transaction (ie, mostly of use for merchants wanting to accept unconfirmed transactions).
2017-10-14Add tools::on_startup, and warn about glibc 2.25 bug if foundmoneromooo-monero1-1/+1
https://sourceware.org/bugzilla/show_bug.cgi?id=21778
2017-10-08Fix #2559: more flexible print_tx daemon commandbinaryFate4-22/+43
2017-10-07daemon: use @N syntax to output_histogram for specific amountsmoneromooo-monero3-11/+26
Makes debugging tx verification easier
2017-10-07Subaddresseskenshi842-9/+12
2017-10-06add a command_line function to check for defaulted optionsmoneromooo-monero1-2/+2
2017-10-03daemon: catch out of range exceptions too when calling stoll/stoimoneromooo-monero1-6/+13
And any other exception, just to be safe
2017-09-25daemon: initialize decode_as_json in RPC requestmoneromooo-monero1-0/+1
CID 161886
2017-09-22Log categories can now be added to and removed frommoneromooo-monero3-3/+8
Also, set_log without parameters now prints the log categories
2017-09-21build: auto update version info without manually deleting version.hstoffu1-1/+1
2017-09-21daemon: indicate whether the spent key image is mined or unconfirmedstoffu1-1/+1
2017-09-19rpc: add new RPCs to get and set limitsMaxXor3-52/+118
2017-09-18daemon: make this build with boost 1.61moneromooo-monero1-1/+1
2017-09-17daemon, wallet: add --max-log-file-size optionselsta2-1/+7
2017-09-08updated clarification bc_dyn_stats Matthew Campassi1-1/+1
updated clarification of required parameter for bc_dyn_stats
2017-09-08clarification bc_dyn_statsMatthew Campassi1-1/+1
clarification of required parameter for bc_dyn_stats
2017-09-05Fix various oversights/bugs in ZMQ RPC server codeThomas Winget2-7/+0
- Add some RPC commands (and touch up a couple others) - some bounds checking - some better pointer management - const correctness and error handling -- Thanks @vtnerd for type help with serialization and CMake changes
2017-09-05json serialization for rpc-relevant monero typesThomas Winget5-1/+74
Structured {de-,}serialization methods for (many new) types which are used for requests or responses in the RPC. New types include RPC requests and responses, and structs which compose types within those. # Conflicts: # src/cryptonote_core/blockchain.cpp
2017-09-02Use latest height for fork date estimateHoward Chu1-2/+3
2017-08-29move db specific options to BlockchainDBmoneromooo-monero1-1/+1
Avoids common depending on blockchain_db, which can cause link errors.
2017-08-26daemon: fix backlog estimating at max block sizemoneromooo-monero1-2/+3
Block size will pretty much never be fully used, unless all txes are using max fee.
2017-08-25txpool: add tx size median to the pool statsmoneromooo1-1/+1
2017-08-23print peer id in 0 padded hex for consistencymoneromooo-monero1-16/+4
2017-08-23daemon: print estimated tx backlog in print_pool_statsmoneromooo-monero1-2/+24
2017-08-20More DB support cleanupHoward Chu1-6/+3
Hide DB types from db_types.h - no reason to recompile dependencies when DB types change. Also remove lingering in-memory DB references, they've been obsolete since 9e82b694da120708652871b55f639d1ef306a7ec
2017-08-18clarification of parameters for print_coinbase_tx_sumMatthew Campassi1-1/+1
2017-08-16Consistently print peer id in hex and on 16 charsmoneromooo-monero1-5/+12
2017-08-12daemon: print peers' top height in sync_infomoneromooo-monero1-1/+1
2017-08-07cryptonote_protocol_handler: sync speedupmoneromooo-monero5-0/+84
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.
2017-08-02daemon: some more include cleanupmoneromooo-monero1-4/+1
2017-07-31some include cleanupmoneromooo-monero1-1/+1
2017-07-29daemon: add average seconds per block in bc_dyn_statsmoneromooo-monero1-1/+4
2017-07-27Move OpenAlias console input back from libsmoneromooo-monero1-1/+2
Library code should definitely not ask for console input unless it's clearly an input function. Delegating the user interaction part to the caller means it can now be used by a GUI, or have a decision algorithm better adapted to a particular caller.
2017-07-13daemon: fix status in command line mode if using restricted rpcmoneromooo-monero1-5/+4
2017-07-10Fix #2164 histogram outputHoward Chu1-1/+1
When there are more than 50txs, the timestamp for the last bin was printed incorrectly. Subtracting "now" was omitted by mistake in 3fc22e7b78ab1dd409de4f3e8f5bff27be19735b
2017-06-04Add histogram to poolstatsHoward Chu1-1/+42
2017-06-01Speedup print_pool_statsHoward Chu1-34/+12
Since we're just counting txs, there's no reason to deserialize all the blobs.
2017-05-23changed crypto to cncrypto so it generated libcncryptoGentian1-1/+1
fix a cmakelist
2017-05-19Fix typoxmr-eric1-1/+1
2017-04-04daemon: print average fee per byte in print_pool_statsmoneromooo-monero1-1/+1
2017-04-04daemon: add fee/byte when print pool transaction infomoneromooo-monero1-0/+2
2017-04-02daemon: new relay_tx command and RPCmoneromooo-monero5-0/+52
2017-03-21daemon: better error reporting in commandsmoneromooo-monero1-41/+48
2017-03-18daemon: fix missing close parenthesis in alt_chain_info outputmoneromooo-monero1-1/+1
Reported by assylias_ on IRC
2017-03-18daemon: alt_chain_info now prints fork depthmoneromooo-monero1-2/+14
2017-03-10fix dependency: put HardFork back to cryptonote_basic, made some ↵kenshi841-1/+1
BlockchainDB functions virtual again to avoid missing symbols error
2017-03-04Add dependency for blocksdat.oHoward Chu1-2/+2
To make sure it gets regenerated whenever checkpoints.dat changes Likewise for blocks.o and testnet_blocks.o
2017-02-26daemon: fix bc_dyn_stats via rpcmoneromooo-monero1-2/+2
2017-02-26Revert attempt to write to console on daemon shutdownNano Akron1-1/+0
2017-02-25core: move hardfork back to cryptonote_coremoneromooo-monero1-1/+1
should fix a cross dependency betewen cryptonote_basic and blockchain_db
2017-02-24daemon/rpc: updates command and RPCmoneromooo-monero5-0/+67
subcommands "check", "download", and "update". update is not yet implemented.
2017-02-24daemon: avoid pre-log-init spew on creating directoriesmoneromooo-monero1-1/+3
2017-02-23Add print_pl_stats daemon commandMiguel Herranz5-0/+44
2017-02-21create a foreground non-interactive modeNoah Watkins2-0/+11
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2017-02-21update copyright year, fix occasional lack of newline at line endRiccardo Spagni17-17/+17
2017-02-21Fix core_tests breaking on startupmoneromooo-monero1-1/+0
You're wondering how this fixes core tests, aren't you... It prevents the miner (initialized by cryptonote::core) from breaking trying to access arguments that were not added. Since the tests don't use the miner directly, it makes more sense to have cryptonote_core add those, since it also uses the miner.
2017-02-16More robust battery status handling.Dion Ahmetaj4-7/+14
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.
2017-02-13daemon: silence spurious warning about uninitialized variablemoneromooo-monero1-3/+3
Also fixes a leak
2017-02-12daemon: fix crash on exit when miningmoneromooo-monero1-0/+2
When exiting while the miner is running, finding a block after the p2p layer has been shutdown will cause a crash as the now uninitialized p2p layer is asked to relay the found block to any peers.
2017-02-10Added a note about smart mining to status command. Fixed up a bug where I ↵Dion Ahmetaj1-1/+1
was resetting bg mining enabled instead of started. Upped the miner threshold. Also moved setting of enabled on start above miner thread creation since starting with true, then stopping, then starting with false resulted in race condition.
2017-02-10Background/smart mining. If a users' computer is plugged into a powerDion Ahmetaj4-6/+14
source, and CPU has been idle for some time, then begin mining to some threshold (don't destroy the users' CPU). This patch only supports windows and linux (I've only tested on Win64 and Ubuntu). The variables currently default to pretty conservative values (i.e. 20% CPU mining threshold).
2017-02-08extract some basic code from libcryptonote_core into libcryptonote_basickenshi842-2/+2
2017-02-06Add server auth to monerod, and client auth to wallet-cli and wallet-rpcLee Clagett8-13/+42
2017-02-05Clarify in/out connections for usersNanoAkron1-1/+1
2017-02-02Fix missing parenthesesMiguel Herranz1-2/+2
2017-02-02Add missing includeMiguel Herranz1-0/+2
Fails to build without it.
2017-01-31Added days uptime to the status messageNanoAkron1-4/+6
Also broke down the time calculations for legibility
2017-01-25Clear feedback to user when daemon has stopped successfullyNanoAkron1-0/+1
2017-01-23rpc: fix bc_dyn_stats not setting grace blocksmoneromooo-monero1-0/+1
This caused a random value to be used, and the resulting incorrect fee when it wasn't 0.
2017-01-16Change logging to easylogging++moneromooo-monero16-84/+130
This replaces the epee and data_loggers logging systems with a single one, and also adds filename:line and explicit severity levels. Categories may be defined, and logging severity set by category (or set of categories). epee style 0-4 log level maps to a sensible severity configuration. Log files now also rotate when reaching 100 MB. To select which logs to output, use the MONERO_LOGS environment variable, with a comma separated list of categories (globs are supported), with their requested severity level after a colon. If a log matches more than one such setting, the last one in the configuration string applies. A few examples: This one is (mostly) silent, only outputting fatal errors: MONERO_LOGS=*:FATAL This one is very verbose: MONERO_LOGS=*:TRACE This one is totally silent (logwise): MONERO_LOGS="" This one outputs all errors and warnings, except for the "verify" category, which prints just fatal errors (the verify category is used for logs about incoming transactions and blocks, and it is expected that some/many will fail to verify, hence we don't want the spam): MONERO_LOGS=*:WARNING,verify:FATAL Log levels are, in decreasing order of priority: FATAL, ERROR, WARNING, INFO, DEBUG, TRACE Subcategories may be added using prefixes and globs. This example will output net.p2p logs at the TRACE level, but all other net* logs only at INFO: MONERO_LOGS=*:ERROR,net*:INFO,net.p2p:TRACE Logs which are intended for the user (which Monero was using a lot through epee, but really isn't a nice way to go things) should use the "global" category. There are a few helper macros for using this category, eg: MGINFO("this shows up by default") or MGINFO_RED("this is red"), to try to keep a similar look and feel for now. Existing epee log macros still exist, and map to the new log levels, but since they're used as a "user facing" UI element as much as a logging system, they often don't map well to log severities (ie, a log level 0 log may be an error, or may be something we want the user to see, such as an important info). In those cases, I tried to use the new macros. In other cases, I left the existing macros in. When modifying logs, it is probably best to switch to the new macros with explicit levels. The --log-level options and set_log commands now also accept category settings, in addition to the epee style log levels.
2017-01-14fix do_not_relay not preventing relaying on a timermoneromooo-monero1-0/+2
Also print its value when printing pool
2017-01-14make struct/class declarations consistent (mismatched-tags warning)Chris Vickio1-1/+1
2017-01-13rpc: add a command to get info about the current blockchainmoneromooo-monero5-0/+130
About the tip of the main chain, and the last N blocks