aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Add hash of top block to /getheight RPCHoward Chu2019-04-012-2/+6
| | | |
* | | | Merge pull request #5374Riccardo Spagni2019-04-112-0/+7
|\ \ \ \ | | | | | | | | | | | | | | | a2561653 wallet: new option to start background mining (moneromooo-monero)
| * | | | wallet: new option to start background miningmoneromooo-monero2019-04-042-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.
* | | | Pass SSL arguments via one class and use shared_ptr instead of referenceLee Clagett2019-04-071-12/+19
| | | |
* | | | Change default SSL to "enabled" if user specifies fingerprint/certificateLee Clagett2019-04-061-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.
* | | | Change SSL certificate file list to OpenSSL builtin load_verify_locationLee Clagett2019-04-062-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.
* | | rpc: merge the two get_info implementationsmoneromooo-monero2019-04-061-62/+3
| | |
* | | rpc.gettransactions: fill as_json with partial tx in pruned modestoffu2019-04-041-12/+43
|/ /
* | Merge pull request #5327Riccardo Spagni2019-04-013-0/+52
|\ \ | | | | | | | | | c23ea796 New interactive daemon command 'print_net_stats': Global traffic stats (rbrunner7)
| * | New interactive daemon command 'print_net_stats': Global traffic statsrbrunner72019-03-243-1/+53
| | |
* | | Merge pull request #5326Riccardo Spagni2019-04-012-1/+4
|\ \ \ | | | | | | | | | | | | dc20d774 rpc: add miner tx hash to block header response (moneromooo-monero)
| * | | rpc: add miner tx hash to block header responsemoneromooo-monero2019-03-212-1/+4
| |/ /
* | | Merge pull request #5308Riccardo Spagni2019-04-011-1/+3
|\ \ \ | | | | | | | | | | | | a7211793 rpc: quantize db size up to 5 GB in restricted mode (moneromooo-monero)
| * | | rpc: quantize db size up to 5 GB in restricted modemoneromooo-monero2019-03-171-1/+3
| |/ /
* | | Merge pull request #5298Riccardo Spagni2019-04-011-283/+0
|\ \ \ | | | | | | | | | | | | 8fd7452b wallet: move light wallet RPC out of core RPC (moneromooo-monero)
| * | | wallet: move light wallet RPC out of core RPCmoneromooo-monero2019-03-151-283/+0
| | | | | | | | | | | | | | | | It's not nothing to do with it
* | | | Make difficulty 128 bit instead of 64 bitmoneromooo-monero2019-03-244-13/+60
| |_|/ |/| | | | | | | | | | | | | | Based on Boolberry work by: jahrsg <jahr@jahr.me> cr.zoidberg <crypto.zoidberg@gmail.com>
* | | Merge pull request #5207Riccardo Spagni2019-03-244-6/+59
|\ \ \ | | | | | | | | | | | | be6f426a rpc: Allow submitting tx as hex blob over ZMQ (Nathan Dorfman)
| * | | rpc: Allow submitting tx as hex blob over ZMQNathan Dorfman2019-02-274-6/+59
| | | |
* | | | Merge pull request #5237Riccardo Spagni2019-03-211-5/+10
|\ \ \ \ | |_|_|/ |/| | | | | | | 3907588b rpc: make fill_pow restricted (moneromooo-monero)
| * | | rpc: make fill_pow restrictedmoneromooo-monero2019-03-061-5/+10
| | |/ | |/| | | | | | | It's slow work, so let's not expose it
* | | Merge pull request #5190Riccardo Spagni2019-03-174-9/+13
|\ \ \ | | | | | | | | | | | | 551104fb daemon: add --public-node mode, RPC port propagation over P2P (xiphon)
| * | | daemon: add --public-node mode, RPC port propagation over P2Pxiphon2019-02-254-9/+13
| | |/ | |/|
* | | Merge pull request #5185Riccardo Spagni2019-03-172-2/+35
|\ \ \ | | | | | | | | | | | | 59478c80 daemon: new mining_status command (moneromooo-monero)
| * | | daemon: new mining_status commandmoneromooo-monero2019-03-092-2/+35
| |/ /
* | | Merge pull request #5177Riccardo Spagni2019-03-171-1/+8
|\ \ \ | | | | | | | | | | | | bb2aed8e rpc: quantize db size up to 5 GB in restricted mode (moneromooo-monero)
| * | | rpc: quantize db size up to 5 GB in restricted modemoneromooo-monero2019-02-211-1/+8
| |/ /
* | / Update 2019 copyrightbinaryFate2019-03-0519-19/+19
| |/ |/|
* | epee: add SSL supportMartijn Otto2019-03-052-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.
* | default initialize rpc structuresmoneromooo-monero2019-03-041-140/+259
| |
* | Merge pull request #4054Riccardo Spagni2019-03-042-3/+65
|\ \ | | | | | | | | | 24569454 epee: add SSL support (moneromooo-monero)
| * | epee: add SSL supportmoneromooo-monero2019-02-022-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.
* / ArticMine's new block weight algorithmmoneromooo-monero2019-03-042-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.
* Adding initial support for broadcasting transactions over TorLee Clagett2019-01-283-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).
* rpc: fix internal daemon calls in restricted rpc getting partial datamoneromooo-monero2019-01-282-159/+179
|
* Pruningmoneromooo-monero2019-01-224-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.
* Merge pull request #5027Riccardo Spagni2019-01-161-12/+12
|\ | | | | | | 9092fc4b wallet: do not display daemon controlled text if untrusted (moneromooo-monero)
| * wallet: do not display daemon controlled text if untrustedmoneromooo-monero2018-12-301-12/+12
| |
* | Merge pull request #4984Riccardo Spagni2019-01-161-13/+16
|\ \ | | | | | | | | | 008647d7 blockchain_db: speedup tx output gathering (moneromooo-monero)
| * | blockchain_db: speedup tx output gatheringmoneromooo-monero2018-12-181-13/+16
| |/ | | | | | | We know all the data we'll want for getblocks.bin is contiguous
* | Merge pull request #4952Riccardo Spagni2019-01-061-3/+4
|\ \ | |/ |/| | | 570dd369 p2p: use vector instead of list for peer lists (moneromooo-monero)
| * p2p: use vector instead of list for peer listsmoneromooo-monero2018-12-071-3/+4
| |
* | Merge pull request #4908Riccardo Spagni2018-12-121-2/+19
|\ \ | | | | | | | | | 5ca4994c rpc: speed up the common get_output_distribution case while syncing (moneromooo-monero)
| * | rpc: speed up the common get_output_distribution case while syncingmoneromooo-monero2018-11-271-2/+19
| | |
* | | Merge pull request #4903Riccardo Spagni2018-12-123-0/+37
|\ \ \ | |_|/ |/| | | | | dc1c1252 add command pop_blocks (Jason Wong)
| * | add command pop_blocksJason Wong2018-11-283-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
* | Merge pull request #4879Riccardo Spagni2018-12-041-24/+29
|\ \ | | | | | | | | | 243f010e rpc: mask values that are nobody else's business in restricted RPC (moneromooo-monero)
| * | rpc: mask values that are nobody else's business in restricted RPCmoneromooo-monero2018-12-041-24/+29
| | |
* | | Merge pull request #4894Riccardo Spagni2018-12-042-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)
| * | remove some unused codemoneromooo-monero2018-11-231-72/+0
| | | | | | | | | | | | Found by codacy.com