daemon: keep track of simple addresses for injecting funds.

We need to control the *inputs* to the anchor tx, to make sure they
pay to witness scripts (thus the anchor is immalleable).  The easiest
way to do this is to hand out P2SH addresses for the user, and have
them pay into those.  Then they hand us that tx and we use it to
create the anchor.

This is not a long-term solution!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-04-12 13:07:03 +09:30
parent 6b956ea22a
commit 51de503096
7 changed files with 133 additions and 0 deletions

View File

@@ -64,4 +64,5 @@ extern const struct json_command failhtlc_command;
extern const struct json_command commit_command;
extern const struct json_command mocktime_command;
extern const struct json_command close_command;
extern const struct json_command newaddr_command;
#endif /* LIGHTNING_DAEMON_JSONRPC_H */