rgb-cln/lightningd
Christian Decker 5a133d2d70 json-rpc: Return a standard compliant error when parsing fails
The JSON-RPC spec specifies that if the request is unparseable we
should return an error with a NULL id. This is a bit more friendly
than slamming the door in the face.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2018-02-10 15:44:14 +01:00
..
test common: add logging for peer packets, with status_io. 2018-02-07 00:46:49 +00:00
.gitignore handshaked: remove. 2017-10-20 18:31:32 +02:00
Makefile status: generate messages rather than marshal/unmarshal manually. 2018-02-08 19:07:12 +01:00
bitcoind.c bitcoind: trivial cleanups. 2018-02-01 03:12:43 +00:00
bitcoind.h bitcoind: Disentangle gettxout from the scid verification 2018-02-01 03:12:43 +00:00
build_utxos.c wallet: Use newindex primitive to generate change key index 2018-01-08 17:19:25 +01:00
build_utxos.h build_utxos: fix weight calculation, and make more accurate. 2017-12-20 12:56:15 +01:00
chaintopology.c Onboarding: tweak grammar conventions for RPC responses 2018-02-02 06:16:23 +00:00
chaintopology.h update references to sat/kb to sat/kw 2018-01-30 08:11:51 +00:00
dev_ping.c jsonprc: make json_get_params() fail the command, for better error reporting. 2018-02-02 00:05:00 +01:00
gossip_control.c tools/generate_wire.py: generate varlen arrays properly. 2018-02-08 19:07:12 +01:00
gossip_control.h gossipd: rewrite to do the handshake internally. 2017-10-20 18:31:32 +02:00
gossip_msg.c tools/generate_wire.py: make varlen structs self-allocate. 2018-02-08 19:07:12 +01:00
gossip_msg.h tools/generate_wire.py: make varlen structs self-allocate. 2018-02-08 19:07:12 +01:00
hsm_control.c hsm: give it its own log, so it has unique prefix. 2018-02-07 00:46:49 +00:00
hsm_control.h lightningd/hsm_control: use a simple fd for HSM. 2017-06-27 10:25:53 +09:30
htlc_end.c pay: remove cmd pointer from htlc_out. 2018-02-02 20:33:49 +01:00
htlc_end.h pay: remove cmd pointer from htlc_out. 2018-02-02 20:33:49 +01:00
invoice.c invoice: Return the invoice as a detailed error on expiration 2018-02-05 08:52:42 +00:00
invoice.h invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
jsonrpc.c json-rpc: Return a standard compliant error when parsing fails 2018-02-10 15:44:14 +01:00
jsonrpc.h jsonprc: make json_get_params() fail the command, for better error reporting. 2018-02-02 00:05:00 +01:00
jsonrpc_errors.h Fix typos 2018-02-08 23:33:49 +01:00
lightningd.c common: only log io if they set --debug-subdaemon-io=<daemon> or with SIGUSR1. 2018-02-07 00:46:49 +00:00
lightningd.h common: only log io if they set --debug-subdaemon-io=<daemon> or with SIGUSR1. 2018-02-07 00:46:49 +00:00
log.c json-rpc: Check for unprintable characters in JSON-RPC commands 2018-02-10 15:44:14 +01:00
log.h Use common loglevel JSON parser. 2018-02-07 00:46:49 +00:00
log_status.c status: generate messages rather than marshal/unmarshal manually. 2018-02-08 19:07:12 +01:00
log_status.h status: add multiple levels of logging. 2018-02-07 00:46:49 +00:00
memdump.c Start all command descriptions with a verb ("Show", "Set", etc.). Remove unused help texts. 2018-01-23 13:32:44 +01:00
netaddress.c Fix a-vs-an typos 2018-02-08 22:49:34 +01:00
netaddress.h wireaddr: add ip[:port] parsing 2017-12-21 09:56:20 +00:00
opt_time.c common: absorb remaining files from daemon/ 2017-08-29 17:54:14 +02:00
opt_time.h headers: fix up header idempotent lines. 2017-08-29 17:54:14 +02:00
options.c common: only log io if they set --debug-subdaemon-io=<daemon> or with SIGUSR1. 2018-02-07 00:46:49 +00:00
options.h lightningd: --deprecated-api option to turn off deprecated APIs. 2018-01-19 22:23:45 +00:00
pay.c pay: Add a limit to the fee. 2018-02-09 12:44:33 +01:00
pay.h lightningd: unify pay vs forward path when handling failures. 2017-06-23 09:29:42 +09:30
peer_control.c Fix a-vs-an typos 2018-02-08 22:49:34 +01:00
peer_control.h gossip: Implement connection failed handler in lightningd 2018-01-29 06:01:56 +00:00
peer_htlcs.c tools/generate_wire.py: make bitcoin_tx a varlen structs 2018-02-08 19:07:12 +01:00
peer_htlcs.h tools/generate_wire.py: generate varlen arrays properly. 2018-02-08 19:07:12 +01:00
peer_state.h gossipd: rewrite to do the handshake internally. 2017-10-20 18:31:32 +02:00
subd.c status: separate types for peer failure vs "impossible" failures. 2018-02-08 19:07:12 +01:00
subd.h subd: wrap all message callbacks in a transaction. 2017-11-06 10:24:34 +01:00
txfilter.c txfilter: Expose the txfilter_add_scriptpubkey function 2018-01-08 17:19:25 +01:00
txfilter.h txfilter: Expose the txfilter_add_scriptpubkey function 2018-01-08 17:19:25 +01:00
watch.c lightningd: actually unwatch txs when onchaind says we should. 2018-01-31 11:37:22 +01:00
watch.h lightningd: actually unwatch txs when onchaind says we should. 2018-01-31 11:37:22 +01:00