core-lightning/lightningd
Christian Decker 05ec56a968 plugin: Plugin hook callbacks need to be wrapped in a DB transaction
We therefore keep a reference to the DB and will wrap and unwrap when
a hook returns.

Notice that this might cause behavior changes when moving logic into a
hook callback, since the continuation runs in a different transaction
than the event that triggered the hook in the first place. Should not
matter too much, since we don't use DB rollbacks at the moment, but
it's something to keep in mind.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-01-17 05:42:49 +00:00
..
test invoice: option to expose/not-expose private channels. 2019-01-15 12:01:38 +01:00
.gitignore handshaked: remove. 2017-10-20 18:31:32 +02:00
bitcoind.c bitcoind: allow "getblock" to fail for txout lookup. 2019-01-15 19:39:15 +00:00
bitcoind.h lightningd: allow more than one bitcoind request at once, run multiple queues. 2018-09-19 13:21:21 +02:00
chaintopology.c utils: make tal_arr_expand safer. 2019-01-15 12:01:38 +01:00
chaintopology.h param: make json_tok_ handlers all return command_result, rename to param_ 2018-12-20 03:22:32 +00:00
channel.c signature: wrap almost all signatures in struct bitcoin_signature. 2018-12-06 23:11:51 +01:00
channel.h signature: wrap almost all signatures in struct bitcoin_signature. 2018-12-06 23:11:51 +01:00
channel_control.c utils: make tal_arr_expand safer. 2019-01-15 12:01:38 +01:00
channel_control.h lightningd: peer_start_channeld always returns true; make it void. 2018-08-10 12:46:45 +02:00
channel_state.h lightningd: new state AWAITING_UNILATERAL. 2018-08-23 14:46:22 +02:00
closing_control.c commit_tx: make fee msat vs sat explicit. 2018-12-15 13:50:15 +01:00
closing_control.h gossipd: drain fd instead of passing around gossip index. 2018-04-26 05:47:57 +00:00
connect_control.c json: move bitcoin/lightning specific helpers into common/json_helpers. 2019-01-15 12:01:38 +01:00
connect_control.h connectd: remove separate address hint message. 2018-08-09 19:44:27 +02:00
gossip_control.c short_channel_id_dir: new primitive for one direction of short_channel_id 2019-01-15 12:01:38 +01:00
gossip_control.h connectd: wean off gossip_wire message types, use our own. 2018-07-25 02:13:52 +00:00
gossip_msg.c gossipd: hand raw pubkeys in getnodes and getchannels entries. 2018-10-19 22:02:11 +00:00
gossip_msg.h gossipd: hand raw pubkeys in getnodes and getchannels entries. 2018-10-19 22:02:11 +00:00
hsm_control.c lightningd: use hsm_get_client_fd() helper for global daemons too. 2018-09-20 09:49:39 +02:00
hsm_control.h lightningd: use hsm_get_client_fd() helper for global daemons too. 2018-09-20 09:49:39 +02:00
htlc_end.c lightningd: clean up htlc_in->shared_secret to be optional. 2019-01-08 19:20:28 +01:00
htlc_end.h lightningd: clean up htlc_in->shared_secret to be optional. 2019-01-08 19:20:28 +01:00
invoice.c invoice: add DEVELOPER-only optional dev-routes param. 2019-01-15 12:01:38 +01:00
invoice.h invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
json.c json: move bitcoin/lightning specific helpers into common/json_helpers. 2019-01-15 12:01:38 +01:00
json.h json: move bitcoin/lightning specific helpers into common/json_helpers. 2019-01-15 12:01:38 +01:00
json_stream.c utils: make tal_arr_expand safer. 2019-01-15 12:01:38 +01:00
json_stream.h json: Add function to duplicate a json_stream 2018-12-30 14:36:02 +01:00
jsonrpc.c jsonrpc: Generalize plugin_request to jsonrpc_request 2019-01-17 05:42:49 +00:00
jsonrpc.h jsonrpc: Generalize plugin_request to jsonrpc_request 2019-01-17 05:42:49 +00:00
lightningd.c configure: (mostly) revert b7a56f0531 2019-01-15 02:52:13 +00:00
lightningd.h configure: (mostly) revert b7a56f0531 2019-01-15 02:52:13 +00:00
log.c json-rpc: make commands return 'struct command_result *'. 2018-12-20 03:22:32 +00:00
log.h param: make json_tok_ handlers all return command_result, rename to param_ 2018-12-20 03:22:32 +00:00
log_status.c Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02:00
log_status.h status: add multiple levels of logging. 2018-02-07 00:46:49 +00:00
Makefile plugin: Add hook registration 2019-01-17 05:42:49 +00:00
memdump.c memdump: rearrange order to avoid command_its_complicated(). 2018-12-20 03:22:32 +00:00
memdump.h channeld: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
notification.c notifications: Fix iteration over notification topics 2019-01-17 05:42:49 +00:00
notification.h plugin: Add connect and disconnect notifications 2018-12-30 14:36:02 +01:00
onchain_control.c onchaind: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
onchain_control.h onchaind: Replay stored channeltxs to restore onchaind state 2018-04-25 14:33:38 +02:00
opening_control.c plugin: Add connect and disconnect notifications 2018-12-30 14:36:02 +01:00
opening_control.h openingd: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
options.c utils: make tal_arr_expand safer. 2019-01-15 12:01:38 +01:00
options.h opts: Split early from non-early args so plugins can register theirs 2018-11-13 00:44:50 +01:00
pay.c JSON: remove redundant word "channel" from direction fields. 2019-01-15 12:01:38 +01:00
pay.h waitsendpay: indicate which channel direction the error was. 2019-01-15 12:01:38 +01:00
payalgo.c short_channel_id_dir: new primitive for one direction of short_channel_id 2019-01-15 12:01:38 +01:00
payalgo.h payalgo: New file for pay command. 2018-02-16 13:08:29 +01:00
peer_control.c [rpc] Add funding allocation to listpeers command 2019-01-16 11:50:52 -08:00
peer_control.h channeld: wire up dev_memleak. 2018-11-22 05:15:42 +00:00
peer_htlcs.c lightningd: fix leak when next peer is unknown. 2019-01-15 12:01:38 +01:00
peer_htlcs.h onchaind: include htlc id in htlc_stub so we agree on what HTLC we're closing. 2018-10-23 16:55:35 +02:00
ping.c param: make command_fail/command_success WARN_UNUSED_RESULT. 2018-12-20 03:22:32 +00:00
ping.h ping: complete JSON RPC ping commands even if one ping gets no response. 2018-09-14 22:11:23 +02:00
plugin.c plugin: Remove plugin_request_new and expose plugin_request_send 2019-01-17 05:42:49 +00:00
plugin.h plugin: Remove plugin_request_new and expose plugin_request_send 2019-01-17 05:42:49 +00:00
plugin_hook.c plugin: Plugin hook callbacks need to be wrapped in a DB transaction 2019-01-17 05:42:49 +00:00
plugin_hook.h plugin: Add hooks that a plugin might register 2019-01-17 05:42:49 +00:00
subd.c plugins: allow --dev-debugger=<pluginname>. 2018-12-10 00:00:50 +00:00
subd.h plugins: allow --dev-debugger=<pluginname>. 2018-12-10 00:00:50 +00:00
watch.c txwatch: hand ld to callback, don't assume channel is non-NULL. 2018-08-21 00:48:02 +02:00
watch.h txwatch: hand ld to callback, don't assume channel is non-NULL. 2018-08-21 00:48:02 +02:00