lightningd: store the htlc stubs.

These belong in the database, but for now just keep an array.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-08-18 14:13:53 +09:30
parent 893335244d
commit b6d7ad0614
3 changed files with 15 additions and 2 deletions

View File

@@ -94,6 +94,9 @@ struct peer {
/* Reestablishment stuff: last sent commit and revocation details. */
bool last_was_revoke;
struct changed_htlc *last_sent_commit;
/* FIXME: Just leave this in the db. */
struct htlc_stub *htlcs;
};
static inline bool peer_can_add_htlc(const struct peer *peer)