John Newbery
23e6e64a24
Allow disconnectnode() to be called with node id
...
disconnectnode() can currently only be called with the IP address/port
of the node the user wishes to connect. This commit allows the node to
be disconnected using the nodeid returned by getpeerinfo().
8 years ago
John Newbery
5255aca3f4
[rpc] Add logging RPC
...
Adds an RPC to get and set currently active logging categories.
8 years ago
MarcoFalke
fa55853219
rpc: Rename first named arg of createrawtransaction
8 years ago
Karl-Johan Alm
f3c264e9a6
Refactor: Remove using namespace <xxx> from rpc/
8 years ago
Alex Morcos
f9b9371c60
[rpc] Remove priorityDelta from prioritisetransaction
...
This a breaking API change to the prioritisetransaction RPC call which previously required exactly three arguments and now requires exactly two (hash and feeDelta). The function prioritiseTransaction is also updated.
8 years ago
Alex Morcos
12839cdd56
[rpc] Remove estimatepriority and estimatesmartpriority.
...
The RPC calls were already deprecated.
8 years ago
practicalswift
0c9b9b7d64
[trivial] Fix recently introduced typos in comments
8 years ago
mrbandrews
cc0243ad32
[RPC] bumpfee
...
This command allows a user to increase the fee on a wallet transaction T, creating a "bumper" transaction B.
T must signal that it is BIP-125 replaceable.
T's change output is decremented to pay the additional fee. (B will not add inputs to T.)
T cannot have any descendant transactions.
Once B bumps T, neither T nor B's outputs can be spent until either T or (more likely) B is mined.
Includes code by @jonasschnelli and @ryanofsky
8 years ago
mrbandrews
1fc4ec7bf2
Add pruneblockchain RPC to enable manual block file pruning.
8 years ago
John Newbery
4e7e2e16e4
Update RPC argument names
8 years ago
Wladimir J. van der Laan
481f289765
rpc: Named argument support for bitcoin-cli
...
Usage e.g.:
$ src/bitcoin-cli -testnet -named echo arg0="dfdf"
[
"dfdf"
]
Argument conversion also works, for arguments thus flagged in the table in
`src/rpc/client.cpp`.
$ src/bitcoin-cli -testnet -named echojson arg0="[1,2,3]"
[
[
1,
2,
3
]
]
Unknown parameter (detected server-side):
$ src/bitcoin-cli -testnet -named getinfo arg0="dfdf"
error code: -8
error message:
Unknown named parameter arg0
8 years ago
isle2983
27765b6403
Increment MIT Licence copyright header year on files modified in 2016
...
Edited via:
$ contrib/devtools/copyright_header.py update .
8 years ago
Jonas Schnelli
b2b33d9017
Overhaul network activity toggle
...
- Rename RPC command "togglenetwork" to "setnetworkactive (true|false)"
- Add simple test case
- GUI toggle added to connections icon in statusbar
8 years ago
Pedro Branco
cb08fdbf78
Add importmulti rpc call
8 years ago
Cory Fields
d6a5dc4a2e
add waitfornewblock/waitforblock/waitforblockheight rpcs and use them for tests
...
waitfornewblock waits until a new block is received, or the timeout expires, then
returns the current block height/hash.
waitforblock waits for a specific blockhash, or until the timeout expires, then
returns the current block height/hash. If the target blockhash is the current
tip, it will return immediately.
waitforblockheight waits until the tip has reached a certain height or higher,
then returns the current height and hash.
waitforblockheight is used to avoid polling in the rpc tests.
8 years ago
Pieter Wuille
854f1af22e
Make the dummy argument to getaddednodeinfo optional
8 years ago
Suhas Daftuar
0dfd86956d
Add getmempooldescendants RPC call
8 years ago
Suhas Daftuar
8f7b5dc4af
Add getmempoolancestors RPC call
8 years ago
mruddy
60361ca481
RPC: fix generatetoaddress failing to parse address and add unit test
9 years ago
MarcoFalke
fada0c422c
[doc] Fix doxygen comments for members
9 years ago
Andrew C
fe00ca758a
Create generatetoaddress rpc
...
Creates the generatetoaddress rpc which is virtually identical to the generate rpc except that it takes an argument for the address to mine to. It does not rely on wallet functionality.
The mining code shared by generate and generatetoaddress has been moved to another method to reduce duplication.
9 years ago
Pieter Wuille
8a253b342c
Make the generate RPC call function for non-regtest
9 years ago
Leviathn
8d1de43f0c
Remove internal miner
...
This code removes the internal miner which is only useful on Testnet.
This leaves the internal miner that is useful on RegTest intact.
9 years ago
Daniel Cousens
a0eaff8a1d
move rpc* to rpc/
9 years ago
MarcoFalke
fa24439ff3
Bump copyright headers to 2015
9 years ago
Alex Morcos
56106a3300
Expose RPC calls for estimatesmart functions
...
Also add testing for estimatesmartfee in smartfees.py
9 years ago
Jonas Schnelli
9623e93473
[Univalue] add univalue over subtree
...
similar to secp256k1 include and compile univalue over a subtree
9 years ago
Tom Harding
212bcca920
Add optional locktime to createrawtransaction
...
A non-zero locktime also causes input sequences to be set to
non-max, activating the locktime.
9 years ago
Matt Corallo
a1d7df3236
Add importpubkey method to import a watch-only pubkey
9 years ago
Matt Corallo
907a425aa5
Add p2sh option to importaddress to import redeemScripts
9 years ago
Jonas Schnelli
4e36e9bcc7
setban: rewrite to UniValue, allow absolute bantime
9 years ago
Jonas Schnelli
d930b26a26
[RPC] add setban/listbanned/clearbanned RPC commands
9 years ago
Matt Corallo
21bbd920e5
Add fundrawtransaction RPC method
9 years ago
Peter Todd
076badb60f
Add getblockheader RPC call
...
Alternative to getblock that works even when the block itself has been
pruned, returning all available information.
9 years ago
Wladimir J. van der Laan
043df2b568
Simplify RPCclient, adapt json_parse_error test
...
# Conflicts:
# src/test/rpc_tests.cpp
9 years ago
Jonas Schnelli
9a8897f4ac
Remove JSON Spirit wrapper, remove JSON Spirit leftovers
...
- implement find_value() function for UniValue
- replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper
- remove JSON Spirit sources
9 years ago
Jonas Schnelli
3df0411ad9
remove JSON Spirit UniValue wrapper
9 years ago
Jonas Schnelli
0c5b2cf69a
univalue: add support for real, fix percision and make it json_spirit compatible
...
- avoid breaking the API because of different number/percision handling
9 years ago
Jonas Schnelli
21c10de8c2
special threatment for null,true,false because they are non valid json
9 years ago
Jonas Schnelli
53b4671a9d
extend conversion to UniValue
9 years ago
Jeff Garzik
15982a8b69
Convert tree to using univalue. Eliminate all json_spirit uses.
9 years ago
Matt Corallo
59ed61b389
Add RPC call to generate and verify merkle blocks
10 years ago
Jorge Timón
b74dcb3b4a
Separate CTranslationInterface from CClientUIInterface
10 years ago
Pieter Wuille
6b04508e37
Introduce separate 'generate' RPC call
10 years ago
Cozz Lovan
292623adf5
Subtract fee from amount
...
Fixes #2724 and #1570 .
Adds the
automatically-subtract-the-fee-from-the-amount-and-send-whats-left
feature to the GUI and RPC (sendtoaddress,sendmany).
10 years ago
sandakersmann
f914f1a746
Added "Core" to copyright headers
...
Github-Pull: #5494
Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
10 years ago
Michael Ford
72fb3d295a
Update comments in src/rpc* to be doxygen compatible
10 years ago
Gavin Andresen
a8b2ce557d
regression test only setmocktime RPC call
10 years ago
Benedict Chan
1a613963e1
fix missing gettransaction entries in rpcclient
10 years ago
imharrywu
e9992fb645
remove include of chainparams.h
...
chainparams.h has not been used in this cpp file already, consider to remove it for clean.
10 years ago