summaryrefslogtreecommitdiff
path: root/src/rpc
Commit message (Collapse)AuthorAgeFilesLines
* epee: optionally restrict HTTP service to a configurable user agentmoneromooo-monero2016-09-182-1/+10
| | | | | | | | This is intended to catch traffic coming from a web browser, so we avoid issues with a web page sending a transfer RPC to the wallet. Requiring a particular user agent can act as a simple password scheme, while we wait for 0MQ and proper authentication to be merged.
* cmake: transitive deps and remove deprecated LINK_*redfish2016-09-181-4/+2
| | | | | | | | | | | | | | Keep the immediate direct deps at the library that depends on them, declare deps as PUBLIC so that targets that link against that library get the library's deps as transitive deps. Break dep cycle between blockchain_db <-> crytonote_core. No code refactoring, just hide cycle from cmake so that it doesn't complain (cycles are allowed only between static libs, not shared libs). This is in preparation for supproting BUILD_SHARED_LIBS cmake built-in option for building internal libs as shared.
* wallet: transfer_selected_rct now also selects fake outsmoneromooo-monero2016-08-281-1/+3
|
* rpc: send global indices along with blocks/transacions on refreshmoneromooo-monero2016-08-282-0/+36
| | | | | | | | This plugs a privacy leak, where the wallet tells the daemon which transactions contain outputs for the wallet by asking for additional information for that particular transaction. As a nice bonus, this actually makes refresh slightly faster.
* mixable transactions must be rct for v3moneromooo-monero2016-08-282-0/+4
|
* add rct to the protocolmoneromooo-monero2016-08-281-0/+1
| | | | | It is not yet constrained to a fork, so don't use on the real network or you'll be orphaned or rejected.
* core: new /getrandom_rctouts.bin binary RPC callmoneromooo-monero2016-08-283-0/+56
| | | | to get random ringct outputs to mix with
* remove original Cryptonote blockchain_storage blockchain formatmoneromooo-monero2016-08-281-6/+0
|
* daemon: print time to next forkmoneromooo-monero2016-08-121-1/+1
|
* Fake outs set is now decided by the walletmoneromooo-monero2016-08-113-1/+72
| | | | | | | | | | | | | | | | | | This plugs a privacy leak from the wallet to the daemon, as the daemon could previously see what input is included as a transaction input, which the daemon hadn't previously supplied. Now, the wallet requests a particular set of outputs, including the real one. This can result in transactions that can't be accepted if the wallet happens to select too many outputs with non standard unlock times. The daemon could know this and select another output, but the wallet is blind to it. It's currently very unlikely since I don't think anything uses non default unlock times. The wallet requests more outputs than necessary so it can use spares if any of the returns outputs are still locked. If there are not enough spares to reach the desired mixin, the transaction will fail.
* new unlocked parameter to output_histogrammoneromooo-monero2016-08-012-1/+3
| | | | | | | | This constrains the number of instances of any amount to the unlocked ones (as defined by the default unlock time setting: outputs with non default unlock time are not considered, so may be counted as unlocked even if they are not actually unlocked).
* core_rpc_server: fix gray/white peer list mixupmoneromooo-monero2016-07-261-1/+1
|
* Merge pull request #902Riccardo Spagni2016-07-203-0/+31
|\ | | | | | | 014f3a0 Add a daemon RPC version, and make simplewallet check it (moneromooo-monero)
| * Add a daemon RPC version, and make simplewallet check itmoneromooo-monero2016-07-103-0/+31
| | | | | | | | | | If the version is different, simplewallet will refuse to use that daemon, unless --allow-mismatched-daemon-version is used.
* | rpc: fix get_bans and set_bans RPC names, they were missing a _moneromooo-monero2016-07-101-2/+2
|/
* rpc: restrict number of fake outs requested in restricted rpc modemoneromooo-monero2016-06-291-0/+12
|
* rpc: fix getblock RPC sending blob as binary, not hex dumpmoneromooo-monero2016-06-101-1/+1
|
* Restrict also 'get_connections' and 'getbans' APIs.osensei2016-05-161-2/+2
|
* Don't allow 'flush_txpool' and 'setbans' JSON_RPC methods when running in ↵osensei2016-05-141-2/+2
| | | | restricted mode.
* Add GET_HASHES_FAST rpc, use it in walletHoward Chu2016-04-173-0/+51
| | | | | | | When m_refresh_from_block_height has been set, only hashes will be retrieved up to that height, instead of full blocks. The same will be done for "refresh <height>" when the specified height is beyond the current local blockchain.
* Merge pull request #797Riccardo Spagni2016-04-142-1/+3
|\ | | | | | | | | d662ab5 rpc: print human readable time since received when printing pool (moneromooo-monero) 5c9dd23 rpc: add a do_not_relay boolean to tx submission (moneromooo-monero)
| * rpc: add a do_not_relay boolean to tx submissionmoneromooo-monero2016-04-052-1/+3
| | | | | | | | Just to make it easier
* | rpc: add pool/blockchain and block height results to gettransactionsmoneromooo-monero2016-04-092-7/+54
|/
* Merge pull request #777Riccardo Spagni2016-04-022-0/+4
|\ | | | | | | 8757e46 add blockhashing blob to getblocktemplate (Howard Chu)
| * add blockhashing blob to getblocktemplateHoward Chu2016-03-302-0/+4
| |
* | Merge pull request #767Riccardo Spagni2016-04-022-10/+44
|\ \ | |/ |/| | | 24b3e90 Convey tx verification failure reasons to the RPC client (moneromooo-monero)
| * Convey tx verification failure reasons to the RPC clientmoneromooo-monero2016-03-272-10/+44
| | | | | | | | | | | | | | | | | | | | | | This allows appropriate action to be taken, like displaying the reason to the user. Do just that in simplewallet, which should help a lot in determining why users fail to send. Also make it so a tx which is accepted but not relayed is seen as a success rather than a failure.
* | New RPC and daemon command to get output histogrammoneromooo-monero2016-03-263-0/+75
|/ | | | | | | | | | | | | | | | | This is a list of existing output amounts along with the number of outputs of that amount in the blockchain. The daemon command takes: - no parameters: all outputs with at least 3 instances - one parameter: all outputs with at least that many instances - two parameters: all outputs within that many instances The default starts at 3 to avoid massive spamming of all dust outputs in the blockchain, and is the current minimum mixin requirement. An optional vector of amounts may be passed, to request histogram only for those outputs.
* Fix typo on bitmonerod rpc method error.Mike C2016-03-141-3/+3
|
* rpc: do not return bans if they're effectively spentmoneromooo-monero2016-03-121-4/+7
| | | | | | The blocked ip list will still hold them till next time a connection attempt is made with that IP, so the effective length of the ban may be negative.
* new flush_txpool command, and associated RPC callmoneromooo-monero2016-01-303-0/+77
| | | | | It can flush a particular tx, or the whole pool (the RPC command can flush a list of transactions too)
* rpc: add missing return on error when getting a txmoneromooo-monero2016-01-301-0/+1
|
* Fix V1/V2 use of hard fork related parametersmoneromooo-monero2016-01-291-2/+2
| | | | | Some of it uses hardcoded height, which will need some thinking for next (voted upon) fork.
* rpc: fix missing target information in RPC callmoneromooo-monero2016-01-112-0/+3
| | | | | | | which fixes the status command via RPC too. Turns out there are two versions of the GET_INFO call. I'd never noticed before.
* rpc: is_key_image_spent now checks the tx pool toomoneromooo-monero2016-01-052-1/+37
|
* updated copyright yearRiccardo Spagni2015-12-315-5/+5
|
* Merge pull request #547Riccardo Spagni2015-12-222-1/+3
|\ | | | | | | | | | | 8ea7af1 Allow the wallet to access hard fork information (moneromooo-monero) 760331b epee: make log macros behave like statements (moneromooo-monero) 3f2970f Add missing semicolons after log statements (moneromooo-monero)
| * Allow the wallet to access hard fork informationmoneromooo-monero2015-12-192-1/+3
| | | | | | | | And make it change behavior slightly when close/after first hard fork
* | print top block hash in daemon diff commandmoneromooo-monero2015-12-182-1/+10
|/ | | | and add top block hash in get_info RPC
* Register daemon command line arguments to core if they're used in coremoneromooo-monero2015-12-081-2/+1
| | | | | | This fixes coretests, which does not register daemon specific arguments, but uses core, which uses those arguments. Also gets rid of an unwanted dependency on daemon code from core.
* Merge pull request #505Riccardo Spagni2015-11-302-12/+22
|\ | | | | | | 7574297 core_rpc_server: add a --restricted-rpc option (moneromooo-monero)
| * core_rpc_server: add a --restricted-rpc optionmoneromooo-monero2015-11-272-12/+22
| | | | | | | | | | It does not expose the RPC for commands like start_mining, etc (ie, commands a public node operator might want to be restricted)
* | Merge pull request #503Riccardo Spagni2015-11-302-0/+2
|\ \ | | | | | | | | | 55e5a33 rpc: pass current block target in rpc (moneromooo-monero)
| * | rpc: pass current block target in rpcmoneromooo-monero2015-11-262-0/+2
| |/ | | | | | | | | This fixes the hash rate being wrong on testnet after the switch to 2 minute blocks
* / add RPC calls and commands to get/set bansmoneromooo-monero2015-11-263-0/+112
|/
* Relay transactions when they linger too long in the poolmoneromooo-monero2015-11-211-1/+1
| | | | | | | | The last relayed time of a transaction is maintained, and transactions will be relayed again if they are still in the pool after a certain amount of time, which increases with the transaction's age. All such transactions are resent, whether or not they originated on the local node.
* rpc: fix start_mining and status RPC crashesmoneromooo-monero2015-10-282-0/+3
| | | | | | | They check whether they're running on testnet by accessing the m_rpc_server object, which does not exist when in RPC mode. Also, fix hard_fork_info being called with the wrong API.
* rpc: fix hard_fork_info RPCmoneromooo-monero2015-10-262-0/+2
| | | | I had never tested it, obviously
* core_rpc_server: add optional json decoded tx to COMMAND_RPC_GET_TRANSACTIONSmoneromooo-monero2015-10-132-0/+6
|
* core_rpc_server: add a getblock RPC command, and fix print_blockmoneromooo-monero2015-10-133-0/+94
|