aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/misc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* really s/doge/dis/g this timeTomo Ueda2021-09-021-8/+8
|
* Initial back end framework to separate wallet and relay fees + dust.Michi Lumin2021-07-301-1/+1
|
* Introduce basic Dogecoin brandingRoss Nicoll2019-03-251-16/+16
|
* Change bitcoin address in RPC helpaddress to an invalid address, so people ↵Marijn Stollenga2017-02-281-4/+4
| | | | | | | don't accidentally send coins there (like I did). Github-Pull: #9865 Rebased-From: 83ac719d34f98cc1d3efa6ece2b95145bcde8775
* Use importmulti timestamp when importing watch only keysRussell Yanofsky2017-02-101-0/+3
| | | | | | | | | | | | | When importing a watch-only address over importmulti with a specific timestamp, the wallet's nTimeFirstKey is currently set to 1. After this change, the provided timestamp will be used and stored as metadata associated with watch-only key. This can improve wallet performance because it can avoid the need to scan the entire blockchain for watch only addresses when timestamps are provided. Also adds timestamp to validateaddress return value (needed for tests). Fixes #9034.
* Add test to check new importmulti "now" valueRussell Yanofsky2017-02-101-4/+11
| | | | | Easiest way to test this was to expose the timestamp via the validateaddress RPC (which was already looking up and returning key metadata).
* net: Consistently use GetTimeMicros() for inactivity checksSuhas Daftuar2017-01-251-11/+5
| | | | | | | | | | | The use of mocktime in test logic means that comparisons between GetTime() and GetTimeMicros()/1000000 are unreliable since the former can use mocktime values while the latter always gets the system clock; this changes the networking code's inactivity checks to consistently use the system clock for inactivity comparisons. Also remove some hacks from setmocktime() that are no longer needed, now that we're using the system clock for nLastSend and nLastRecv.
* Update RPC argument namesJohn Newbery2017-01-101-1/+1
|
* rpc: Named argument support for bitcoin-cliWladimir J. van der Laan2017-01-101-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* rpc: Argument name consistencyWladimir J. van der Laan2017-01-051-7/+7
| | | | | | | | | The meaning is clear from the context, and we're inconsistent here. Also save typing when using named arguments. - `bitcoinaddress` -> `address` - `bitcoinprivkey` -> `privkey` - `bitcoinpubkey` -> `pubkey`
* rpc: Named arguments for misc callsWladimir J. van der Laan2017-01-051-8/+8
|
* rpc: Add 'echo' call for testingWladimir J. van der Laan2017-01-051-0/+12
| | | | This hidden call simply returns what is passed in.
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Rename the remaining main.{h,cpp} to validation.{h,cpp}Matt Corallo2016-12-021-1/+1
|
* Merge #8753: Locked memory managerWladimir J. van der Laan2016-11-021-0/+43
|\ | | | | | | | | | | | | | | 444c673 bench: Add benchmark for lockedpool allocation/deallocation (Wladimir J. van der Laan) 6567999 rpc: Add `getmemoryinfo` call (Wladimir J. van der Laan) 4536148 support: Add LockedPool (Wladimir J. van der Laan) f4d1fc2 wallet: Get rid of LockObject and UnlockObject calls in key.h (Wladimir J. van der Laan) 999e4c9 wallet: Change CCrypter to use vectors with secure allocator (Wladimir J. van der Laan)
| * rpc: Add `getmemoryinfo` callWladimir J. van der Laan2016-10-271-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` getmemoryinfo Returns an object containing information about memory usage. Result: { "locked": { (json object) Information about locked memory manager "used": xxxxx, (numeric) Number of bytes used "free": xxxxx, (numeric) Number of bytes available in current arenas "total": xxxxxxx, (numeric) Total number of bytes managed "locked": xxxxxx, (numeric) Amount of bytes that succeeded locking. If this number is smaller than total, locking pages failed at some point and key data could be swapped to disk. } } Examples: > bitcoin-cli getmemoryinfo > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmemoryinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/ ```
* | Change all instance of 'GMT epoch' to 'Unix epoch'matthias2016-10-311-1/+1
|/
* [RPC] Give RPC commands more information about the RPC requestJonas Schnelli2016-10-191-21/+21
|
* RPC: Chainparams: Remove Chainparams::fTestnetToBeDeprecatedFieldRPCJorge Timón2016-10-181-1/+1
|
* [rpc] Deprecate getinfoMarcoFalke2016-09-211-1/+1
| | | | This was replaced by getmininginfo, getnetworkinfo and getwalletinfo
* Remove createwitnessaddressJohnson Lau2016-09-131-38/+0
| | | | This RPC command is unsafe as it will return an address even if the script is invalid.
* Made the ForEachNode* functions in src/net.cpp more pragmatic and self ↵Jeremy Rubin2016-09-081-1/+0
| | | | documenting
* net: create generic functor accessors and move vNodes to CConnmanCory Fields2016-09-081-3/+6
|
* net: Add most functions needed for vNodes to CConnmanCory Fields2016-09-081-1/+2
|
* Do not shadow global RPC table variable (tableRPC)Pavel Janík2016-08-251-2/+2
|
* [Wallet] report optional HDKeypath/HDMasterKeyId in validateaddressJonas Schnelli2016-07-091-0/+8
|
* [RPC] Add wallet support for witness transactions (using P2SH)Pieter Wuille2016-06-221-0/+38
| | | | Includes support for pushkeyhash wit v0 by Alex Morcos.
* Create signmessagewithprivkey rpcAndrew2016-04-271-0/+43
| | | | New rpc 'signmessagewithprivkey' which takes a private key to sign a message without using the wallet.
* rpc: Register calls where they are definedWladimir J. van der Laan2016-03-311-0/+18
| | | | | | | | | | | | Split out methods to every module, apart from 'help' and 'stop' which are implemented in rpcserver.cpp itself. - This makes it easier to add or remove RPC commands - no longer everything that includes rpcserver.h has to be rebuilt when there's a change there. - Cleans up `rpc/server.h` by getting rid of the huge cluttered list of function definitions. - Removes most of the bitcoin-specific code from rpcserver.cpp and .h. Continues #7307 for the non-wallet.
* move rpc* to rpc/Daniel Cousens2016-01-211-0/+398