mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
create_commit_tx: don't use protobufs in the API.
Hand anchor details and pubkeys directly; this is what we want for the actual daemon which doesn't keep raw packets around. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -162,4 +162,13 @@ struct pkt *update_signature_pkt(const tal_t *ctx,
|
||||
struct pkt *update_complete_pkt(const tal_t *ctx,
|
||||
const struct sha256 *revocation_preimage);
|
||||
|
||||
struct channel_state;
|
||||
|
||||
struct bitcoin_tx *commit_tx_from_pkts(const tal_t *ctx,
|
||||
OpenChannel *ours,
|
||||
OpenChannel *theirs,
|
||||
OpenAnchor *anchor,
|
||||
const struct sha256 *rhash,
|
||||
const struct channel_state *cstate);
|
||||
|
||||
#endif /* LIGHTNING_PKT_H */
|
||||
|
||||
Reference in New Issue
Block a user