| 108 | *****************************************************************************/ |
| 109 | |
| 110 | static const char *init(struct plugin *p, const char *buf UNUSED, |
| 111 | const jsmntok_t *config UNUSED) |
| 112 | { |
| 113 | rpc_scan(p, "getinfo", take(json_out_obj(NULL, NULL, NULL)), |
| 114 | "{id:%}", JSON_SCAN(json_to_node_id, &my_id)); |
| 115 | |
| 116 | rpc_scan(p, "listconfigs", |
| 117 | take(json_out_obj(NULL, "config", "max-locktime-blocks")), |
| 118 | "{max-locktime-blocks:%}", |
| 119 | JSON_SCAN(json_to_number, &maxdelay_default)); |
| 120 | |
| 121 | return NULL; |
| 122 | } |
| 123 | |
| 124 | struct payment_modifier *pay_mods[] = { |
| 125 | &keysend_pay_mod, |
nothing calls this directly
no test coverage detected