aboutsummaryrefslogtreecommitdiff
path: root/src/rpc (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-06-14rpc: restrict the recent cutoff size in restricted RPC modemoneromooo-monero1-0/+9
2019-06-09miner: fix double free of thread attributesston1th2-8/+2
issue: #5568
2019-05-21Add ssl_options support to monerod's rpc mode.Lee Clagett3-84/+99
2019-05-09rpc: fail update RPC when running offlinemoneromooo-monero1-0/+7
2019-05-07Merge pull request #5510Riccardo Spagni2-5/+5
e9809382 fix wide difficulty conversion with some versions of boost (moneromooo-monero)
2019-05-07Merge pull request #5496Riccardo Spagni4-8/+34
0eb0d6b8 rpc: improve get_output_distribution (moneromooo-monero)
2019-05-01fix wide difficulty conversion with some versions of boostmoneromooo-monero2-5/+5
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-monero4-8/+34
It can now handle small reorgs without having to rescan the whole blockchain. Also add a test for it.
2019-04-16Merge pull request #5452Riccardo Spagni2-1/+4
c30d93fc rpc: add a pruned bool to the prune_blockchain call (moneromooo-monero)
2019-04-16Merge pull request #5448Riccardo Spagni2-8/+3
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 Spagni3-8/+23
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 Spagni2-0/+13
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-monero2-1/+4
2019-04-15rpc: fix get_block_hashes.bin from wallet on pruned blockchainmoneromooo-monero2-8/+3
We want to get all blocks here, even pruned ones
2019-04-15rpc: omit irrelevant fields for pool txes in gettransactionsmoneromooo-monero1-4/+10
2019-04-15rpc: add relayed in get_transaction outputmoneromooo-monero2-5/+11
2019-04-15rpc: set default log category in core_rpc_server.hmoneromooo-monero1-0/+3
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-monero2-0/+13
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-monero2-3/+30
Related to emission, reorgs, getting tx data back, output distribution and histogram
2019-04-11Merge pull request #5376Riccardo Spagni2-1/+5
c746f45d Add hash of top block to /getheight RPC (Howard Chu)
2019-04-11Merge pull request #5374Riccardo Spagni2-0/+7
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 Clagett2-18/+8
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
2019-04-04wallet: new option to start background miningmoneromooo-monero2-0/+7
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-04rpc.gettransactions: fill as_json with partial tx in pruned modestoffu1-12/+43
2019-04-01Merge pull request #5327Riccardo Spagni3-0/+52
c23ea796 New interactive daemon command 'print_net_stats': Global traffic stats (rbrunner7)
2019-04-01Merge pull request #5326Riccardo Spagni2-1/+4
dc20d774 rpc: add miner tx hash to block header response (moneromooo-monero)
2019-04-01Merge pull request #5308Riccardo Spagni1-1/+3
a7211793 rpc: quantize db size up to 5 GB in restricted mode (moneromooo-monero)
2019-04-01Merge pull request #5298Riccardo Spagni1-283/+0
8fd7452b wallet: move light wallet RPC out of core RPC (moneromooo-monero)
2019-04-01Add hash of top block to /getheight RPCHoward Chu2-2/+6
2019-03-24Make difficulty 128 bit instead of 64 bitmoneromooo-monero4-13/+60
Based on Boolberry work by: jahrsg <jahr@jahr.me> cr.zoidberg <crypto.zoidberg@gmail.com>
2019-03-24Merge pull request #5207Riccardo Spagni4-6/+59
be6f426a rpc: Allow submitting tx as hex blob over ZMQ (Nathan Dorfman)
2019-03-24New interactive daemon command 'print_net_stats': Global traffic statsrbrunner73-1/+53
2019-03-21Merge pull request #5237Riccardo Spagni1-5/+10
3907588b rpc: make fill_pow restricted (moneromooo-monero)
2019-03-21rpc: add miner tx hash to block header responsemoneromooo-monero2-1/+4
2019-03-17rpc: quantize db size up to 5 GB in restricted modemoneromooo-monero1-1/+3
2019-03-17Merge pull request #5190Riccardo Spagni4-9/+13
551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
2019-03-17Merge pull request #5185Riccardo Spagni2-2/+35
59478c80 daemon: new mining_status command (moneromooo-monero)
2019-03-17Merge pull request #5177Riccardo Spagni1-1/+8
bb2aed8e rpc: quantize db size up to 5 GB in restricted mode (moneromooo-monero)
2019-03-15wallet: move light wallet RPC out of core RPCmoneromooo-monero1-283/+0
It's not nothing to do with it
2019-03-09daemon: new mining_status commandmoneromooo-monero2-2/+35
2019-03-06rpc: make fill_pow restrictedmoneromooo-monero1-5/+10
It's slow work, so let's not expose it
2019-03-05Update 2019 copyrightbinaryFate19-19/+19
2019-03-05epee: add SSL supportMartijn Otto2-1/+12
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-03-04default initialize rpc structuresmoneromooo-monero1-140/+259
2019-03-04Merge pull request #4054Riccardo Spagni2-3/+65
24569454 epee: add SSL support (moneromooo-monero)
2019-03-04ArticMine's new block weight algorithmmoneromooo-monero2-0/+3
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-27rpc: Allow submitting tx as hex blob over ZMQNathan Dorfman4-6/+59
2019-02-25daemon: add --public-node mode, RPC port propagation over P2Pxiphon4-9/+13
2019-02-21rpc: quantize db size up to 5 GB in restricted modemoneromooo-monero1-1/+8
2019-02-02epee: add SSL supportmoneromooo-monero2-3/+65
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-28Adding initial support for broadcasting transactions over TorLee Clagett3-26/+22
- Support for ".onion" in --add-exclusive-node and --add-peer - Add --anonymizing-proxy for outbound Tor connections - Add --anonymous-inbounds for inbound Tor connections - Support for sharing ".onion" addresses over Tor connections - Support for broadcasting transactions received over RPC exclusively over Tor (else broadcast over public IP when Tor not enabled).
2019-01-28rpc: fix internal daemon calls in restricted rpc getting partial datamoneromooo-monero2-159/+179
2019-01-22Pruningmoneromooo-monero4-19/+118
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-16Merge pull request #5027Riccardo Spagni1-12/+12
9092fc4b wallet: do not display daemon controlled text if untrusted (moneromooo-monero)
2019-01-16Merge pull request #4984Riccardo Spagni1-13/+16
008647d7 blockchain_db: speedup tx output gathering (moneromooo-monero)
2019-01-06Merge pull request #4952Riccardo Spagni1-3/+4
570dd369 p2p: use vector instead of list for peer lists (moneromooo-monero)
2018-12-30wallet: do not display daemon controlled text if untrustedmoneromooo-monero1-12/+12
2018-12-18blockchain_db: speedup tx output gatheringmoneromooo-monero1-13/+16
We know all the data we'll want for getblocks.bin is contiguous
2018-12-12Merge pull request #4908Riccardo Spagni1-2/+19
5ca4994c rpc: speed up the common get_output_distribution case while syncing (moneromooo-monero)
2018-12-12Merge pull request #4903Riccardo Spagni3-0/+37
dc1c1252 add command pop_blocks (Jason Wong)
2018-12-07p2p: use vector instead of list for peer listsmoneromooo-monero1-3/+4
2018-12-04Merge pull request #4879Riccardo Spagni1-24/+29
243f010e rpc: mask values that are nobody else's business in restricted RPC (moneromooo-monero)
2018-12-04Merge pull request #4894Riccardo Spagni2-73/+1
aee7a4e3 wallet_rpc_server: do not use RPC data if the call failed (moneromooo-monero) 1a0733e5 windows_service: fix memory leak (moneromooo-monero) 0dac3c64 unit_tests: do not rethrow a copy of an exception (moneromooo-monero) 5d9915ab cryptonote: fix get_unit for non default settings (moneromooo-monero) d4f50cb1 remove some unused code (moneromooo-monero) 61163971 a few minor (but easy) performance tweaks (moneromooo-monero) 30023074 tests: slow_memmem now returns size_t (moneromooo-monero)
2018-12-04rpc: mask values that are nobody else's business in restricted RPCmoneromooo-monero1-24/+29
2018-12-04Merge pull request #4878Riccardo Spagni5-0/+10
517f25ef rpc: add version to get_info (Jethro Grassie)
2018-12-04Merge pull request #4869Riccardo Spagni1-3/+3
60f36386 Avoid unnecessary temp block and copy ctor (moneromooo-monero)
2018-12-04Merge pull request #4859Riccardo Spagni2-15/+18
6f2497bc Don't cache nettype in core_rpc_server use m_core (doy-lee)
2018-12-04Merge pull request #4854Riccardo Spagni1-1/+0
bd98e99c Removed a lot of unnecessary includes (Martijn Otto)
2018-11-28add command pop_blocksJason Wong3-0/+37
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-27rpc: speed up the common get_output_distribution case while syncingmoneromooo-monero1-2/+19
2018-11-26Merge pull request #4821Riccardo Spagni1-1/+3
fc98f7a0 rpc: speedup get_outs.bin (moneromooo-monero)
2018-11-26rpc: speedup get_outs.binmoneromooo-monero1-1/+3
2018-11-23remove some unused codemoneromooo-monero1-72/+0
Found by codacy.com
2018-11-23tests: slow_memmem now returns size_tmoneromooo-monero1-1/+1
Makes more sense than uint64_t for an offset, and agrees with the %zu used to print results. Found by codacy.com
2018-11-21rpc: add version to get_infoJethro Grassie5-1/+11
2018-11-20rpc: speedup get_output_distributionmoneromooo-monero3-2/+105
and decrease the amount of data carried around
2018-11-19Avoid unnecessary temp block and copy ctormoneromooo-monero1-3/+3
block already has a default ctor, and the extra object churn due to its innards (vectors, etc) is pointless.
2018-11-16tests: add unit tests for get_output_distributionmoneromooo-monero4-5/+5
2018-11-16Don't cache nettype in core_rpc_server use m_coredoy-lee2-15/+18
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-15Removed a lot of unnecessary includesMartijn Otto1-1/+0
2018-11-14Merge pull request #4750Riccardo Spagni1-3/+3
e61062b6 use current height - 1 for top block height in err msgs (cryptochangements34)
2018-11-14Merge pull request #4747Riccardo Spagni1-1/+8
dad5bbfd return message in stop_mining if mining never started (cryptochangements34)
2018-11-06Merge pull request #4735Riccardo Spagni1-1/+1
73e504c1 rpc: adjust ring size error message now that too high is also possible (moneromooo-monero) a5ca7f4f core: fix unmixable special case allowing ring size below 11 (moneromooo-monero)
2018-11-04rpc: fix linking error of 6097472a, get_output_distributionDusan Klinec1-5/+5
Undefined symbols for architecture x86_64: "cryptonote::core::get_output_distribution(unsigned long long, unsigned long long, unsigned long long, unsigned long long&, std::__1::vector<unsigned long long, std::__1::allocator<unsigned long long> >&, unsigned long long&) const", referenced from: cryptonote::rpc::RpcHandler::get_output_distribution(cryptonote::core&, unsigned long long, unsigned long long, unsigned long long, bool) in rpc_handler.cpp.o
2018-11-04Merge pull request #4687Riccardo Spagni10-80/+226
6097472a Update ZMQ fee estimate and add ZMQ output distribution (Lee Clagett)
2018-11-02use current height - 1 for top block height in err msgscryptochangements341-3/+3
2018-10-28return message in stop_mining if mining never startedcryptochangements341-1/+8
2018-10-27rpc: adjust ring size error message now that too high is also possiblemoneromooo-monero1-1/+1
2018-10-26Merge pull request #4719Riccardo Spagni1-1/+1
0aff4987 rpc: fix build with older compilers (moneromooo-monero)
2018-10-26Merge pull request #4617Riccardo Spagni2-4/+1
3ffbec15 rpc: init m_rpc_version in Message ctor (moneromooo-monero) bfa2dce1 rpc: remove unused ctors (moneromooo-monero) 7cc39845 account: init creation timestamp to 0 (moneromooo-monero) 32123789 wallet2: initialize some scalar fields in ctor where appropriate (moneromooo-monero) 4eca42b2 blockchain_db: initialize m_hardfork in ctor just in case (moneromooo-monero)
2018-10-24rpc: fix build with older compilersmoneromooo-monero1-1/+1
2018-10-23Update ZMQ fee estimate and add ZMQ output distributionLee Clagett10-80/+226
2018-10-22rpc: fix wrongly formatted JSON for pruned txstoffu1-19/+12
Fix for #4399. Also unifies code for serializing pruned tx to binary/json into one.
2018-10-20Merge pull request #4524Riccardo Spagni1-1/+1
f5f7c2ac rpc: blanket initialize 0MQ request and response structures (moneromooo-monero)
2018-10-20Merge pull request #4659Riccardo Spagni1-6/+8
b916ca63 rpc: fix output distribution caching ignoring chain changes (moneromooo-monero)
2018-10-19rpc: fix output distribution caching ignoring chain changesmoneromooo-monero1-6/+8
0 is placeholder for whole chain, so we should compare chain height changes rather than chain-height-or-zero. Even this isn't totally foolproof if a blocks are popped and the same number added again, but it is much better as it prevents the data from slowly going out of sync.
2018-10-18tx_pool: revert #4592 and move bin2hex conversion to on_get_transaction_poolstoffu1-0/+2
2018-10-16rpc: init m_rpc_version in Message ctormoneromooo-monero1-1/+1
Coverity 182501
2018-10-16rpc: remove unused ctorsmoneromooo-monero1-3/+0
Also prevents coverity from moaning about them not initializing fields
2018-10-12rpc: blanket initialize 0MQ request and response structuresmoneromooo-monero1-1/+1
2018-10-04rpc: fixed typo in JSON command error response messageAnythingTechPro1-1/+1
2018-09-21Merge pull request #4399Riccardo Spagni1-1/+10
f77ce675 rpc: allow pruning of json encoded txs (cryptochangements34)
2018-09-21Merge pull request #4378Riccardo Spagni2-1/+5
ac934663 rpc: add a "is an update available" flag in get_info (moneromooo-monero)
2018-09-21Merge pull request #4373Riccardo Spagni2-0/+3
4f81cd3a rpc: add cumulative difficulty in block header data (moneromooo-monero)
2018-09-18Merge pull request #4354Riccardo Spagni1-1/+7
03c07b16 rpc: return "already mining" in start_mining if already mining (moneromooo-monero)
2018-09-18Merge pull request #4344Riccardo Spagni1-1/+1
cd647612 rpc: don't include start time if restricted (moneromooo-monero)
2018-09-18Merge pull request #4317Riccardo Spagni1-4/+10
76f95f05 rpc: allow to pass RPC login via RPC_LOGIN env var (Dusan Klinec)
2018-09-17rpc: allow pruning of json encoded txscryptochangements341-1/+10
2018-09-14remove obsolete daemon selection of fake outs and old tx constructionmoneromooo-monero6-232/+0
2018-09-14rpc: add a "is an update available" flag in get_infomoneromooo-monero2-1/+5
Make it easier for a user to be told when to update
2018-09-13rpc: add cumulative difficulty in block header datamoneromooo-monero2-0/+3
2018-09-11v8: per byte fee, pad bulletproofs, fixed 11 ring sizemoneromooo-monero5-17/+33
2018-09-09rpc: return "already mining" in start_mining if already miningmoneromooo-monero1-1/+7
2018-09-07rpc: don't include start time if restrictedmoneromooo-monero1-1/+1
2018-08-31rpc: allow to pass RPC login via RPC_LOGIN env varDusan Klinec1-4/+10
- passing by parameter is insecure as it is shown in the process list
2018-08-02Fixed ZMQ-RPC for transactions and GET_BLOCKS_FASTLee Clagett2-26/+18
2018-07-19Merge pull request #4075luigi11111-1/+0
438d52d remove epee from link lines where it's redundant (moneromooo-monero)
2018-07-19Merge pull request #4033luigi11113-4/+44
3e46db9 rpc: add a non binary get_transaction_pool_hashes RPC (moneromooo-monero)
2018-07-19Merge pull request #4013luigi11112-0/+4
e5592c4 rpc: add blockchain disk size to getinfo (moneromooo-monero)
2018-07-19Merge pull request #3981luigi11113-146/+24
45e419b db: store cumulative rct output distribution in the db for speed (moneromooo-monero)
2018-07-19Merge pull request #3973luigi11112-2/+18
50af357 alt_chain_info can now give more info about a particular alt chain (moneromooo-monero)
2018-07-19Merge pull request #3854luigi11115-1/+96
149da42 db_lmdb: enable batch transactions by default (stoffu) 34cb6b4 add --regtest and --fixed-difficulty for regression testing (vicsn) 9e1403e update get_info RPC and bump RPC version (vicsn) 207b66e first new functional tests (vicsn)
2018-07-13db: store cumulative rct output distribution in the db for speedmoneromooo-monero3-147/+25
This gets rid of the temporary precalc cache. Also make the RPC able to send data back in binary or JSON, since there can be a lot of data This bumps the LMDB database format to v3, with migration.
2018-07-03Merge pull request #4012Riccardo Spagni1-0/+4
5b5828fc zmq_server: fix bind call when address and/or port are empty (moneromooo-monero)
2018-06-29update get_info RPC and bump RPC versionvictorsintnicolaas3-1/+6
2018-06-29add --regtest and --fixed-difficulty for regression testingvictorsintnicolaas4-0/+90
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-27Merge pull request #3716luigi11114-73/+60
a2b557f 6795bd0 209ec96 ed2c81e a830db2 57ea902 31a895e ba8331c f7f1917 41be339 f025ae9 ef2cb63 dcfd299 5d3e702 2704624 2771a18 0e4c7d0 (moneromooo-monero)
2018-06-26rpc: rework to avoid repeated calculations in get_blocks.binmoneromooo-monero2-30/+17
2018-06-26replace std::list with std::vector on some hot pathsmoneromooo-monero4-49/+38
also use reserve where appropriate
2018-06-26rpc: sanity check on number of txes in a blockmoneromooo-monero1-0/+6
2018-06-26rpc: add option to skip coinbase info in get_blocks.binmoneromooo-monero2-4/+9
2018-06-26alt_chain_info can now give more info about a particular alt chainmoneromooo-monero2-3/+19
2018-06-21fix typos in language files and rpc_args.cppordtrogen1-1/+1
2018-06-21rpc: add a non binary get_transaction_pool_hashes RPCmoneromooo-monero3-5/+45
2018-06-20rpc: add blockchain disk size to getinfomoneromooo-monero2-1/+5
This should help new nodes predict how much disk space will be needed for a full sync
2018-06-19Merge pull request #3851luigi11111-0/+2
a87980f fix build with GCC 8.1.0 (moneromooo-monero)
2018-06-17zmq_server: fix bind call when address and/or port are emptymoneromooo-monero1-0/+4
2018-06-07Merge pull request #3892luigi11111-6/+7
d344736 rpc: convert distribution to cumulative after caching (moneromooo-monero)
2018-06-01rpc: the cache is still for non cumulative on that branchmoneromooo-monero1-0/+7
2018-05-31Merge pull request #3561luigi11113-8/+22
353e9c0 Core RPC: optionally add POW hash to block_header_response (stoffu)
2018-05-31rpc: convert distribution to cumulative after cachingmoneromooo-monero1-6/+7
This avoids double conversion on a later cache hit
2018-05-30rpc: fix get_output_distribution cache for the cumulative casemoneromooo-monero1-0/+7
The distribution was not converted to cumulative after a cache hit
2018-05-26fix build with GCC 8.1.0moneromooo-monero1-0/+2
2018-05-23db_lmdb: save pruned and prunable tx data separatelymoneromooo-monero2-18/+3
This bumps DB version to 2, migration code will run for v1 DBs
2018-05-21speed up get_output_distribution (and precalc common case)moneromooo-monero2-1/+129
2018-04-28Merge pull request #3705Riccardo Spagni1-1/+1
f9d0827b Fix broken interactive daemon 'limit' commands plus RPC calls (rbrunner7)
2018-04-25Fix broken interactive daemon 'limit' commands plus RPC callsrbrunner71-1/+1
2018-04-23speedup get_output_histogram for all amounts when min_count > 0moneromooo-monero1-1/+1
This skips the vast majority of "dust" output amounts with just one instance on the chain. Clocks in at 0.15% of the original time on testnet.
2018-04-21Merge pull request #3672Riccardo Spagni2-0/+36
875c1cab wallet2: increase rpc timeout for get_output_distribution (moneromooo-monero) 70f23217 add top height to get_output_distribution, and cache it for rct (moneromooo-monero) 8c7363fb rpc: add missing perf timer for get_output_distribution (moneromooo-monero)
2018-04-19add top height to get_output_distribution, and cache it for rctmoneromooo-monero2-0/+35
This should cache the vast majority of calls for long running wallets
2018-04-19rpc: add missing perf timer for get_output_distributionmoneromooo-monero1-0/+1
2018-04-12Merge pull request #3549Riccardo Spagni2-8/+14
73951cbd wallet2: request transactions in slices when scanning for known rings (moneromooo-monero) 25fe67e4 rpc: allow getting pruned blocks from gettransactions (moneromooo-monero)
2018-04-12Merge pull request #3502Riccardo Spagni1-1/+1
11c933e1 fix lambda compile error on openbsd (moneromooo-monero)
2018-04-07rpc: allow getting pruned blocks from gettransactionsmoneromooo-monero2-8/+14
and get them pruned in find_and_save_rings, since it does not need the pruned data in the first place. Also set decode_to_json to false where missing, we don't need this either.
2018-04-05Core RPC: optionally add POW hash to block_header_responsestoffu3-8/+22
2018-03-27fix lambda compile error on openbsdmoneromooo-monero1-1/+1
2018-03-23rpc: make get_output_distribution a non-restricted RPCmoneromooo-monero1-1/+1
so that those nodes can still be used for sending transactions
2018-03-16Merge pull request #3336Riccardo Spagni1-2/+2
57c0b1ed Fix typos in various files (Dimitris Apostolou)
2018-03-16add RPC to get a histogram of outputs of a given amountmoneromooo-monero3-1/+81
2018-03-15Fix typos in various filesDimitris Apostolou1-2/+2
2018-03-05Stagenetstoffu5-18/+32
2018-02-16options: add testnet option dependencieswhythat1-2/+6
2018-02-16options: remove testnet-* optionswhythat2-18/+4
2018-02-16Merge pull request #3165Riccardo Spagni3-1/+349
7539603f Bootstrap daemon (stoffu)
2018-02-16Merge pull request #3163Riccardo Spagni3-4/+38
628b78ae Fix in_peers/out_peers RPC operations (Erik de Castro Lopo) ece9bcf5 rpc_client: Fix error handling (Erik de Castro Lopo) 8f30350d Fix method name in invoke_http_json_rpc (Erik de Castro Lopo) 32c0f908 Allow the number of incoming connections to be limited (Erik de Castro Lopo) d609a2c1 Rename delete_connections to delete_out_connections (Erik de Castro Lopo) b927c0fc Rename connections_count to max_out_connection_count (Erik de Castro Lopo)
2018-02-16Merge pull request #3094Riccardo Spagni1-1/+1
a85dbb3f Fixed typos and wording tweaks (Maxithi)
2018-01-30Bootstrap daemonstoffu3-1/+349
2018-01-29Fixed typos and wording tweaksMaxithi1-1/+1
2018-01-29Allow the number of incoming connections to be limitedErik de Castro Lopo3-2/+36
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-29Rename delete_connections to delete_out_connectionsErik de Castro Lopo1-1/+1
This rename is needed so that delete_in_connections can be added.
2018-01-29Rename connections_count to max_out_connection_countErik de Castro Lopo1-1/+1
This is needed so that a max_in_connection_count can be added.
2018-01-27Merge pull request #3144Riccardo Spagni2-1/+5
42f86624 rpc: expose recent median block size in getinfo (moneromooo-monero)
2018-01-27Merge pull request #3136Riccardo Spagni1-1/+1
e0404d35 rpc: default do_not_relay to false in sendrawtransaction (moneromooo-monero)
2018-01-26Readd copyright starting datexmr-eric6-6/+6
2018-01-26Update 2018 copyrightxmr-eric19-19/+19
2018-01-25Merge pull request #3068Riccardo Spagni1-2/+2
301ec15c Change cryptonote::COMMAND_RPC_SET_LIMIT::response to use int64_t (Nick Johnson)
2018-01-25Merge pull request #3047Riccardo Spagni1-0/+18
fa5c0bab Implement #3045, fixing RPC snakecases (Nick Johnson)
2018-01-25Merge pull request #3020Riccardo Spagni1-1/+1
03ac3890 zmq: use older 3-arg version of setsockopt (stoffu)
2018-01-17rpc: expose recent median block size in getinfomoneromooo-monero2-1/+5
2018-01-16rpc: default do_not_relay to false in sendrawtransactionmoneromooo-monero1-1/+1
2018-01-10fix some link errors in debug mode for macosstoffu1-0/+2
2018-01-10epee: remove dependency on commonmoneromooo-monero1-1/+2
2018-01-06Implement #3045, fixing RPC snakecasesNick Johnson1-0/+18
2018-01-04Change cryptonote::COMMAND_RPC_SET_LIMIT::response to use int64_tNick Johnson1-2/+2
2017-12-28zmq: use older 3-arg version of setsockoptstoffu1-1/+1
2017-12-18add empty container sanity checks when using front() and back()moneromooo-monero2-3/+12
2017-12-18rpc: guard against json parsing a non objectmoneromooo-monero1-1/+1