core-lightning/plugins
Rusty Russell 5e2053feea pay: fix crash when we paystatus too soon.
If the attempt hasn't started yet, we can have an empty 'attempts' array
(while it's in listpeers, for example):

```
pay: plugins/pay.c:1457: json_paystatus: Assertion `tal_count(ps->attempts)' failed.
pay: FATAL SIGNAL 6 (version v0.8.1rc1-1-g946af3f)
0x55e895110543 send_backtrace
	common/daemon.c:39
0x55e8951105e9 crashdump
	common/daemon.c:52
0x7f92b0928f1f ???
	???:0
0x7f92b0928e97 ???
	???:0
0x7f92b092a800 ???
	???:0
0x7f92b091a399 ???
	???:0
0x7f92b091a411 ???
	???:0
0x55e895100012 json_paystatus
	plugins/pay.c:1457
0x55e895103aaa ld_command_handle
	plugins/libplugin.c:968
0x55e895103bd4 ld_read_json_one
	plugins/libplugin.c:1011
0x55e895103cd2 ld_read_json
	plugins/libplugin.c:1030
0x55e895124cbd next_plan
	ccan/ccan/io/io.c:59
0x55e89512583a do_plan
	ccan/ccan/io/io.c:407
0x55e895125878 io_ready
	ccan/ccan/io/io.c:417
0x55e895127a3e io_loop
	ccan/ccan/io/poll.c:445
0x55e895104593 plugin_main
	plugins/libplugin.c:1194
0x55e895100cbc main
	plugins/pay.c:1697
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-02-13 14:20:50 +10:30
..
.gitignore plugins/.gitignore: Add fundchannel entry 2019-09-17 21:05:51 +02:00
autoclean.c libplugin: generalize the plugin_timer callback type 2020-02-12 11:45:07 +10:30
bcli.c plugins/bcli: register Bitcoin-related options 2020-02-12 11:45:07 +10:30
fundchannel.c libplugin: use json_stream for all plugins' commands 2020-02-10 09:49:15 +10:30
libplugin.c plugins: libplugin don't insist on 'jsonrpc' field from lightningd. 2020-02-13 12:34:31 +10:30
libplugin.h libplugin: generalize the plugin_timer callback type 2020-02-12 11:45:07 +10:30
Makefile plugins/bcli: a new plugin for gathering Bitcoin data 2020-02-12 11:45:07 +10:30
pay.c pay: fix crash when we paystatus too soon. 2020-02-13 14:20:50 +10:30
README.md doc: fix wording in plugins/README.md 2020-01-06 12:57:59 +01:00

Plugin Directory

Any file in this directory which is executable and whose name only consists of alphanumeric characters, space, '.', '-' or '_' will be automatically loaded when lightningd starts (unless suppressed with commandline options).