summaryrefslogtreecommitdiff
path: root/src/rpc
Commit message (Collapse)AuthorAgeFilesLines
* rpc: fix build, ctx does not exist yet on this branchmoneromooo-monero2019-03-061-5/+5
|
* rpc: make fill_pow restrictedmoneromooo-monero2019-03-061-5/+10
| | | | It's slow work, so let's not expose it
* rpc: fix wrongly formatted JSON for pruned txstoffu2019-02-181-19/+12
| | | | | | | Fix for #4399. Also unifies code for serializing pruned tx to binary/json into one. (Cherry-picked from #4586)
* ArticMine's new block weight algorithmmoneromooo-monero2019-02-122-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.
* Merge pull request #4660Riccardo Spagni2018-10-201-6/+8
|\ | | | | | | 742dec8d rpc: fix output distribution caching ignoring chain changes (moneromooo-monero)
| * rpc: fix output distribution caching ignoring chain changesmoneromooo-monero2018-10-191-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.
* | tx_pool: revert #4592 and move bin2hex conversion to on_get_transaction_poolstoffu2018-10-181-0/+2
|/
* Merge pull request #4399Riccardo Spagni2018-09-211-1/+10
|\ | | | | | | f77ce675 rpc: allow pruning of json encoded txs (cryptochangements34)
| * rpc: allow pruning of json encoded txscryptochangements342018-09-171-1/+10
| |
* | Merge pull request #4378Riccardo Spagni2018-09-212-1/+5
|\ \ | | | | | | | | | ac934663 rpc: add a "is an update available" flag in get_info (moneromooo-monero)
| * | rpc: add a "is an update available" flag in get_infomoneromooo-monero2018-09-142-1/+5
| | | | | | | | | | | | Make it easier for a user to be told when to update
* | | Merge pull request #4373Riccardo Spagni2018-09-212-0/+3
|\ \ \ | | | | | | | | | | | | 4f81cd3a rpc: add cumulative difficulty in block header data (moneromooo-monero)
| * | | rpc: add cumulative difficulty in block header datamoneromooo-monero2018-09-132-0/+3
| |/ /
* | | Merge pull request #4354Riccardo Spagni2018-09-181-1/+7
|\ \ \ | | | | | | | | | | | | 03c07b16 rpc: return "already mining" in start_mining if already mining (moneromooo-monero)
| * | | rpc: return "already mining" in start_mining if already miningmoneromooo-monero2018-09-091-1/+7
| | | |
* | | | Merge pull request #4344Riccardo Spagni2018-09-181-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | cd647612 rpc: don't include start time if restricted (moneromooo-monero)
| * | | | rpc: don't include start time if restrictedmoneromooo-monero2018-09-071-1/+1
| |/ / /
* | | | Merge pull request #4317Riccardo Spagni2018-09-181-4/+10
|\ \ \ \ | |_|_|/ |/| | | | | | | 76f95f05 rpc: allow to pass RPC login via RPC_LOGIN env var (Dusan Klinec)
| * | | rpc: allow to pass RPC login via RPC_LOGIN env varDusan Klinec2018-08-311-4/+10
| |/ / | | | | | | | | | - passing by parameter is insecure as it is shown in the process list
* | / remove obsolete daemon selection of fake outs and old tx constructionmoneromooo-monero2018-09-146-232/+0
| |/ |/|
* | v8: per byte fee, pad bulletproofs, fixed 11 ring sizemoneromooo-monero2018-09-115-17/+33
|/
* Fixed ZMQ-RPC for transactions and GET_BLOCKS_FASTLee Clagett2018-08-022-26/+18
|
* Merge pull request #4075luigi11112018-07-191-1/+0
|\ | | | | | | 438d52d remove epee from link lines where it's redundant (moneromooo-monero)
| * remove epee from link lines where it's redundantmoneromooo-monero2018-06-281-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.
* | Merge pull request #4033luigi11112018-07-193-4/+44
|\ \ | | | | | | | | | 3e46db9 rpc: add a non binary get_transaction_pool_hashes RPC (moneromooo-monero)
| * | rpc: add a non binary get_transaction_pool_hashes RPCmoneromooo-monero2018-06-213-5/+45
| | |
* | | Merge pull request #4013luigi11112018-07-192-0/+4
|\ \ \ | | | | | | | | | | | | e5592c4 rpc: add blockchain disk size to getinfo (moneromooo-monero)
| * | | rpc: add blockchain disk size to getinfomoneromooo-monero2018-06-202-1/+5
| |/ / | | | | | | | | | | | | This should help new nodes predict how much disk space will be needed for a full sync
* | | Merge pull request #3981luigi11112018-07-193-146/+24
|\ \ \ | | | | | | | | | | | | 45e419b db: store cumulative rct output distribution in the db for speed (moneromooo-monero)
| * | | db: store cumulative rct output distribution in the db for speedmoneromooo-monero2018-07-133-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.
* | | | Merge pull request #3973luigi11112018-07-192-2/+18
|\ \ \ \ | | | | | | | | | | | | | | | 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-262-3/+19
| | | | |
* | | | | Merge pull request #3854luigi11112018-07-195-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)
| * | | | update get_info RPC and bump RPC versionvictorsintnicolaas2018-06-293-1/+6
| | | | |
| * | | | add --regtest and --fixed-difficulty for regression testingvictorsintnicolaas2018-06-294-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
* | | | | Merge pull request #4012Riccardo Spagni2018-07-031-0/+4
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | 5b5828fc zmq_server: fix bind call when address and/or port are empty (moneromooo-monero)
| * | | | zmq_server: fix bind call when address and/or port are emptymoneromooo-monero2018-06-171-0/+4
| | |/ / | |/| |
* | | | Merge pull request #3716luigi11112018-06-274-73/+60
|\ \ \ \ | | | | | | | | | | | | | | | a2b557f 6795bd0 209ec96 ed2c81e a830db2 57ea902 31a895e ba8331c f7f1917 41be339 f025ae9 ef2cb63 dcfd299 5d3e702 2704624 2771a18 0e4c7d0 (moneromooo-monero)
| * | | | rpc: rework to avoid repeated calculations in get_blocks.binmoneromooo-monero2018-06-262-30/+17
| | | | |
| * | | | replace std::list with std::vector on some hot pathsmoneromooo-monero2018-06-264-49/+38
| | | | | | | | | | | | | | | | | | | | also use reserve where appropriate
| * | | | rpc: sanity check on number of txes in a blockmoneromooo-monero2018-06-261-0/+6
| | | | |
| * | | | rpc: add option to skip coinbase info in get_blocks.binmoneromooo-monero2018-06-262-4/+9
| | |_|/ | |/| |
* / | | fix typos in language files and rpc_args.cppordtrogen2018-06-211-1/+1
|/ / /
* | | Merge pull request #3851luigi11112018-06-191-0/+2
|\ \ \ | |/ / |/| | | | | a87980f fix build with GCC 8.1.0 (moneromooo-monero)
| * | fix build with GCC 8.1.0moneromooo-monero2018-05-261-0/+2
| | |
* | | Merge pull request #3892luigi11112018-06-071-6/+7
|\ \ \ | | | | | | | | | | | | d344736 rpc: convert distribution to cumulative after caching (moneromooo-monero)
| * | | rpc: convert distribution to cumulative after cachingmoneromooo-monero2018-05-311-6/+7
| | | | | | | | | | | | | | | | This avoids double conversion on a later cache hit
* | | | rpc: the cache is still for non cumulative on that branchmoneromooo-monero2018-06-011-0/+7
| |_|/ |/| |
* | | Merge pull request #3561luigi11112018-05-313-8/+22
|\ \ \ | | | | | | | | | | | | 353e9c0 Core RPC: optionally add POW hash to block_header_response (stoffu)
| * | | Core RPC: optionally add POW hash to block_header_responsestoffu2018-04-053-8/+22
| | | |