Wladimir J. van der Laan
8d713f761b
rpc: Named arguments for rawtransaction calls
8 years ago
Wladimir J. van der Laan
78b684f2ac
rpc: Named arguments for mining calls
8 years ago
Wladimir J. van der Laan
b8ebc595bb
rpc: Named arguments for net calls
...
Also add a more descriptive message for `setnetworkactive`.
8 years ago
Wladimir J. van der Laan
fba1a6150c
rpc: Named arguments for misc calls
8 years ago
Wladimir J. van der Laan
286ec08cb0
rpc: Add 'echo' call for testing
...
This hidden call simply returns what is passed in.
8 years ago
Wladimir J. van der Laan
495eb44a4f
rpc: Named arguments for blockchain calls
8 years ago
Wladimir J. van der Laan
6f1c76ae14
rpc: Support named arguments
...
The [JSON-RPC specification](http://www.jsonrpc.org/specification ) allows passing parameters as an Array, for by-position
arguments, or an Object, for by-name arguments.
This implements by-name arguments, but preserves full backwards compatibility. API using by-name arguments are
easier to extend, and easier to use (no need to guess which argument goes where).
Named are mapped to positions by a per-call structure, provided through the RPC command table.
Missing arguments will be replaced by null, except if at the end, then the argument is left out completely.
Currently calls fail (though not crash) on intermediate nulls, but this should be improved on a per-call basis later.
8 years ago
Pieter Wuille
3641141c8f
Move tx estimation data out of CCheckPointData
8 years ago
Pieter Wuille
a4bac66cca
[MOVEONLY] Move progress estimation out of checkpoints
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
Anditto Heristyo
afe5b3f553
Added missing colons in when running help command
8 years ago
Pieter Wuille
c44e4c467c
Make AcceptToMemoryPool take CTransactionRef
8 years ago
jonnynewbs
d29505db22
Fix transaction size comments. Size now refers to virtual size as defined in BIP141.
8 years ago
Gregory Sanders
bc7ff8db99
Add option to return non-segwit serialization via rpc
8 years ago
Pieter Wuille
f6fb7acda4
Move CTxInWitness inside CTxIn
8 years ago
Matt Corallo
a13fa4c80f
Remove unused CDiskBlockPos* argument from ProcessNewBlock
8 years ago
Matt Corallo
2d6e5619af
Switch pblock in ProcessNewBlock to a shared_ptr
...
This (finally) fixes a performance regression in
b3b3c2a562
8 years ago
Matt Corallo
2736c44c8e
Make the optional pblock in ActivateBestChain a shared_ptr
8 years ago
Pieter Wuille
42fd8dee30
Make DecodeHexTx return a CMutableTransaction
8 years ago
Pieter Wuille
a1883536b4
Switch GetTransaction to returning a CTransactionRef
8 years ago
Matt Corallo
76faa3cdfe
Rename the remaining main.{h,cpp} to validation.{h,cpp}
8 years ago
Matt Corallo
e736772c56
Move network-msg-processing code out of main to its own file
8 years ago
Alex Morcos
d824ad030e
Disable fee estimates for a confirm target of 1 block
8 years ago
fanquake
e3c4f7e182
Correct help output for waitfor RPC commands
8 years ago
jnewbery
ce2bb23aa5
getrawtransaction should take a bool for verbose
8 years ago
Pieter Wuille
ad04d1cb35
Always add default_witness_commitment with GBT client support
8 years ago
Pieter Wuille
1662b437b3
Make CBlock::vtx a vector of shared_ptr<CTransaction>
8 years ago
Masahiko Hyuga
a79f864945
fix getnettotals RPC description about timemillis.
8 years ago
Matt Corallo
ae22357607
Replace CValidationState param in ProcessNewBlock with BlockChecked
8 years ago
Matt Corallo
7c98ce584e
Remove pfrom parameter from ProcessNewBlock
...
This further decouples ProcessNewBlock from networking/peer logic.
8 years ago
Matt Corallo
e2e069dabc
Revert "RPC: Give more details when "generate" fails"
...
This only returned information in the case of CheckBlock failure,
but breaks future changes.
8 years ago
Jorge Timón
1adf82ac39
RPC: Give more details when "generate" fails
8 years ago
Alex Morcos
b2322e0fc6
Remove priority estimation
8 years ago
Suhas Daftuar
88c35491ab
Fix compact block handling to not ban if block is invalid
8 years ago
MarcoFalke
fa326193ad
[rpc] ParseHash: Fail when length is not 64
8 years ago
matthias
7f61b49de8
Change all instance of 'GMT epoch' to 'Unix epoch'
8 years ago
S. Matthew English
1c3ecc70c8
instance of 'mem pool' to 'mempool'
...
there was only one instance of 'mem pool' and not 'mempool', so I changed it to conform to the others
8 years ago
Wladimir J. van der Laan
6567999096
rpc: Add `getmemoryinfo` call
...
```
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/
```
8 years ago
Luke Dashjr
54cf99745f
RPC/Net: Use boolean consistently for networkactive, and remove from getinfo
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
Jon Lund Steffensen
e38993bb36
RPC: Add "togglenetwork" method to toggle network activity temporarily
...
RPC command "togglenetwork" toggles network and returns new state after command.
RPC command "getinfo" returns "networkactive" field in output.
8 years ago
S. Matthew English
3a286abf8f
Eliminating Inconsistencies in Textual Output
...
There were discrepancies between usage of "block chain" and "blockchain", I've changed them to the latter. The reason for this was that Wikipedia when describing this data structure writes "A blockchain — *originally block chain*", so it seemed the more appropriate term.
8 years ago
Pedro Branco
cb08fdbf78
Add importmulti rpc call
8 years ago
mruddy
fc146095d2
RPC: augment getblockchaininfo bip9_softforks data
8 years ago
Jonas Schnelli
e7156ad61b
[RPC] pass HTTP basic authentication username to the JSONRequest object
8 years ago
Jonas Schnelli
69d1c25768
[RPC] Give RPC commands more information about the RPC request
8 years ago
Wladimir J. van der Laan
23c32a9694
rpc: Change JSONRPCRequest to JSONRPCRequestObj
...
This is more consistent with `JSONRPCReplyObj`.
8 years ago
Luke Dashjr
59daa58d6a
RPC/Mining: getblocktemplate: Update and fix formatting of help
8 years ago
Jorge Timón
b26a7b5377
RPC: Chainparams: Remove Chainparams::fTestnetToBeDeprecatedFieldRPC
8 years ago
R E Broadley
1724a405c9
Display minimum ping in debug window.
8 years ago