pkt_open: use flag to indicate whether packet will offer anchor.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-01-22 06:41:45 +10:30
parent 93b5db89a8
commit 4d22b4e3eb
3 changed files with 10 additions and 4 deletions

View File

@@ -564,7 +564,8 @@ static struct htlc *find_htlc_spend(const struct state_data *sdata,
return (struct htlc *)h;
}
Pkt *pkt_open(const tal_t *ctx, const struct state_data *sdata)
Pkt *pkt_open(const tal_t *ctx, const struct state_data *sdata,
OpenChannel__AnchorOffer anchor)
{
return new_pkt(ctx, PKT_OPEN);
}