diff --git a/channeld/Makefile b/channeld/Makefile index 53a60ba80..e20e07674 100644 --- a/channeld/Makefile +++ b/channeld/Makefile @@ -58,6 +58,7 @@ CHANNELD_COMMON_OBJS := \ common/timeout.o \ common/type_to_string.o \ common/utils.o \ + common/utxo.o \ common/version.o \ common/wireaddr.o \ gossipd/gen_gossip_wire.o \ diff --git a/channeld/channel.c b/channeld/channel.c index 86ac7751b..2284eebb0 100644 --- a/channeld/channel.c +++ b/channeld/channel.c @@ -1123,8 +1123,8 @@ static void handle_peer_revoke_and_ack(struct peer *peer, const u8 *msg) } if (peer->revocations_received != peer->next_index[REMOTE] - 2) { - peer_failed(io_conn_fd(peer->peer_conn), - &peer->pcs.cs, + peer_failed(PEER_FD, + &peer->cs, &peer->channel_id, "Unexpected revoke_and_ack"); }