mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-07 16:14:26 +01:00
Misc minor cleanups.
From doing a code walkthrough with Christian Decker; unnecessary const in bitcoin/tx.c, an erroneous FIXME, a missing comment, and an unused struct. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -655,7 +655,6 @@ Pkt *accept_pkt_htlc_add(struct peer *peer, const Pkt *pkt)
|
||||
stage.add.htlc = htlc;
|
||||
add_unacked(&peer->local, &stage);
|
||||
|
||||
/* FIXME: Fees must be sufficient. */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -642,6 +642,7 @@ static const struct bitcoin_tx *htlc_fulfill_tx(const struct peer *peer,
|
||||
/* FIXME: Reason! */
|
||||
static bool command_htlc_fail(struct peer *peer, struct htlc *htlc)
|
||||
{
|
||||
/* If onchain, nothing we can do. */
|
||||
if (!state_can_remove_htlc(peer->state))
|
||||
return false;
|
||||
|
||||
|
||||
@@ -101,12 +101,6 @@ struct peer_visible_state {
|
||||
struct htlc_map htlcs;
|
||||
};
|
||||
|
||||
struct out_pkt {
|
||||
Pkt *pkt;
|
||||
void (*ack_cb)(struct peer *peer, void *arg);
|
||||
void *ack_arg;
|
||||
};
|
||||
|
||||
/* Off peer->outgoing_txs */
|
||||
struct outgoing_tx {
|
||||
struct list_node list;
|
||||
|
||||
Reference in New Issue
Block a user