187 Commits (53ecf098ab7d153563f31ac5e5582a8dc2ac2c07)

Author SHA1 Message Date
Rusty Russell e5c61fcb0c jsonrpc: plumb through dispatch result to avoid command_its_complicated(). 6 years ago
Rusty Russell 68bb36b210 json-rpc: make commands return 'struct command_result *'. 6 years ago
Rusty Russell bc41ab2cb9 param: make json_tok_ handlers all return command_result, rename to param_ 6 years ago
Rusty Russell 93bf7c4839 param: make command sinks (fail/success) return a special type. 6 years ago
Rusty Russell 12731c4a60 json_tok_len, json_tok_contents: rename to json_tok_full_len and json_tok_full 6 years ago
Rusty Russell 3773251d4e jsonrpc: mark all JSONRPC connections as notleak. 6 years ago
Rusty Russell db58d089e2 jsonrpc: use tal_arr_remove(). 6 years ago
Rusty Russell 0a3b38fb20 jsonrpc: fix leak. 6 years ago
Mark Beckwith 816840e9c4 rpc: check error now consistent with lightning-cli 6 years ago
Rusty Russell 001e215064 check: rename returned result to match incoming, remove redundant 'parameters': 'OK'. 6 years ago
Rusty Russell d7e233e47d Move json and param core functionality into common, for plugins. 6 years ago
Rusty Russell c28cbf4a61 jsonrpc: remove ok pointer. 6 years ago
Rusty Russell 3f16c9a665 param: abstract 'struct command' so param doesn't need to access it. 6 years ago
Rusty Russell 86c517ac9b common/json: add context arg to json_parse_input. 6 years ago
Rusty Russell 10260e2f24 lightningd: expose lower-level APIs. 6 years ago
Rusty Russell 8015e7dcfb jsonrpc: add the obj token to the callback. 6 years ago
Rusty Russell aee2197a66 jsonrpc: make sure even errors are valid json. 6 years ago
Mark Beckwith 70707bf767 rpc: add check command 6 years ago
Mark Beckwith 542f529ed1 param: add support for unused parameters 6 years ago
Christian Decker b23a33ec7a jsonrpc: Use tal_arr_remove instead of leaving NULL in the commands 6 years ago
Christian Decker a71208b2a0 plugin: Remove added JSON-RPC methods if a plugin gets killed 6 years ago
Christian Decker 83775e7cea jsonrpc: Split the jsonrpc object creation from starting to listen 6 years ago
Christian Decker 01c7bc5884 jsonrpc: Make an explicit jsonrpc struct 6 years ago
Conor Scott dd27205ba2 [rpc] move getinfo implementation to peer_control.c 6 years ago
Rusty Russell 8a246e2c0a jsonrpc: provide overview of how this all connects together. 6 years ago
Rusty Russell 3f5487e247 jsonrpc: dev_slowcmd, a command which starts output then delays. 6 years ago
Rusty Russell e0d14bddb9 jsonrpc: allow multiple commands at once. 6 years ago
Rusty Russell f9fd802147 jsonrpc: make struct json_connection definition private. 6 years ago
Rusty Russell 47d2a71ef0 json.c and jsonrpc.c: move functions between them. 6 years ago
Rusty Russell e17f69ce2d json_stream: disentangle JSON handling from command. 6 years ago
Rusty Russell b2378654d7 jsonrpc: add double '\n' to end of JSON RPC commands. 6 years ago
Rusty Russell 0dcd66880c Rename `struct json_result` to `struct json_stream` (RENAMEONLY) 6 years ago
Rusty Russell c403415caa lightningd: format JSON directly into json connection membuf. 6 years ago
Rusty Russell 03e7be5bce json_connection: keep pointer to the conn. 6 years ago
Rusty Russell f4a2c4f8bb jsonrpc: helper to move an existing io_write. 6 years ago
Rusty Russell e46ce0fc84 jsonrpc: declare up front whether a response is success or fail. 6 years ago
Rusty Russell 39f0dfb664 jsonrpc: use ccan/membuf instead of a string for our output buffer. 6 years ago
Rusty Russell e9fcd120f8 jsonrpc: fix reading of multiple commands. 6 years ago
Rusty Russell ce0bd7abd3 jsonrpc: only allow a single command at a time. 6 years ago
Rusty Russell 305795b01e common/json: move JSON creation routines into lightningd/ 6 years ago
Rusty Russell 604638712b jsonrpc: Only show total fees collected in getinfo. 6 years ago
Christian Decker 6b7546b94d json-rpc: Rename `getroutestats` and move stats to getinfo 6 years ago
Rusty Russell f6b0f794b2 jsonrpc: fix crash on bad JSON input. 6 years ago
Christian Decker b86edf3cf1 jsonrpc: Simple demonstration on how jcon can be locked for streams 6 years ago
William Casarin cc4357f0a6 rpc: add json_add_help_command for help command objects 6 years ago
lisa neigut 45b07e7e89 jsonrpc: fix cppcheck warning for potential null pointer deref 6 years ago
Mark Beckwith cbde3e20f7 cli: help command now also prints usage 6 years ago
Mark Beckwith 1a4f355a7b param: add ok flag to struct command 6 years ago
Mark Beckwith 30b67c0334 param: call param() all the time 6 years ago
Mark Beckwith d91b94a812 param: add command mode 6 years ago