mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
peer: remove unused struct members.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
46030d9a02
commit
fbe15bdce2
@ -949,13 +949,11 @@ static struct peer *new_peer(struct lightningd_state *dstate,
|
|||||||
peer->commit_jsoncmd = NULL;
|
peer->commit_jsoncmd = NULL;
|
||||||
list_head_init(&peer->outgoing_txs);
|
list_head_init(&peer->outgoing_txs);
|
||||||
list_head_init(&peer->pay_commands);
|
list_head_init(&peer->pay_commands);
|
||||||
peer->close_watch_timeout = NULL;
|
|
||||||
peer->anchor.watches = NULL;
|
peer->anchor.watches = NULL;
|
||||||
peer->cur_commit.watch = NULL;
|
peer->cur_commit.watch = NULL;
|
||||||
peer->closing.their_sig = NULL;
|
peer->closing.their_sig = NULL;
|
||||||
peer->closing.our_script = NULL;
|
peer->closing.our_script = NULL;
|
||||||
peer->closing.their_script = NULL;
|
peer->closing.their_script = NULL;
|
||||||
peer->cleared = INPUT_NONE;
|
|
||||||
peer->closing_onchain.tx = NULL;
|
peer->closing_onchain.tx = NULL;
|
||||||
peer->closing_onchain.resolved = NULL;
|
peer->closing_onchain.resolved = NULL;
|
||||||
peer->closing_onchain.ci = NULL;
|
peer->closing_onchain.ci = NULL;
|
||||||
|
@ -190,9 +190,6 @@ struct peer {
|
|||||||
const struct bitcoin_tx **resolved;
|
const struct bitcoin_tx **resolved;
|
||||||
} closing_onchain;
|
} closing_onchain;
|
||||||
|
|
||||||
/* If not INPUT_NONE, send this when we have no more HTLCs. */
|
|
||||||
enum state_input cleared;
|
|
||||||
|
|
||||||
/* Current ongoing packetflow */
|
/* Current ongoing packetflow */
|
||||||
struct io_data *io_data;
|
struct io_data *io_data;
|
||||||
|
|
||||||
@ -205,9 +202,6 @@ struct peer {
|
|||||||
/* Bitcoin transctions we're broadcasting (see chaintopology.c) */
|
/* Bitcoin transctions we're broadcasting (see chaintopology.c) */
|
||||||
struct list_head outgoing_txs;
|
struct list_head outgoing_txs;
|
||||||
|
|
||||||
/* Timeout for close_watch. */
|
|
||||||
struct oneshot *close_watch_timeout;
|
|
||||||
|
|
||||||
/* Timeout for collecting changes before sending commit. */
|
/* Timeout for collecting changes before sending commit. */
|
||||||
struct oneshot *commit_timer;
|
struct oneshot *commit_timer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user