mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
4a161b710d
When adding their HTLCs, it needs all the information. When failing, it needs the id as key and the failure reason. When fulfilling, it needs the id and payment preimage. It also needs to know when we have received an revoke_and_ack or a commitment_signed, to place in the database. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 lines
443 B
C
12 lines
443 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>
|
|
|
|
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 */
|