mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
We need this for reestablishing a channel. (Note: this patch changes quite a bit in this series, but reshuffling was tedious). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
23 lines
763 B
C
23 lines
763 B
C
/* All about the HTLCs/commitment transactions for a particular peer. */
|
|
#ifndef LIGHTNING_LIGHTNINGD_PEER_HTLCS_H
|
|
#define LIGHTNING_LIGHTNINGD_PEER_HTLCS_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
/* FIXME: Define serialization primitive for this? */
|
|
struct channel_info {
|
|
secp256k1_ecdsa_signature commit_sig;
|
|
struct channel_config their_config;
|
|
struct pubkey remote_fundingkey;
|
|
struct basepoints theirbase;
|
|
struct pubkey their_per_commit_point;
|
|
};
|
|
|
|
bool peer_save_commitsig(struct peer *peer, u64 commitnum);
|
|
|
|
int peer_sending_commitsig(struct peer *peer, const u8 *msg);
|
|
int peer_got_commitsig(struct peer *peer, const u8 *msg);
|
|
int peer_got_revoke(struct peer *peer, const u8 *msg);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_PEER_HTLCS_H */
|