Skip to content

Commit

Permalink
fixup! paymod: Implement keysend sending support as a native RPC command
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Jun 25, 2020
1 parent bce455e commit 8d5480c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 120 deletions.
4 changes: 2 additions & 2 deletions plugins/keysend.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ struct keysend_data {
struct preimage preimage;
};

REGISTER_PAYMENT_MODIFIER_HEADER(keysend, struct keysend_data);

static struct keysend_data *keysend_init(struct payment *p)
{
struct keysend_data *d;
Expand Down Expand Up @@ -124,9 +126,7 @@ static struct command_result *json_keysend(struct command *cmd, const char *buf,
#if DEVELOPER
bool *use_shadow;
#endif
struct keysend_data *keysend;
p = payment_new(NULL, cmd, NULL /* No parent */, pay_mods);
keysend = payment_mod_keysend_get_data(p);
if (!param(cmd, buf, params,
p_req("destination", param_node_id, &destination),
p_req("msatoshi", param_msat, &msat),
Expand Down
118 changes: 0 additions & 118 deletions tests/plugins/keysend.py

This file was deleted.

0 comments on commit 8d5480c

Please sign in to comment.