htlcs: Remove in-memory htlc_stubs

We pull them from the database on-demand, where we're storing them
anyway. No need to keep them in memory as well.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2017-10-10 19:47:38 +02:00
committed by Rusty Russell
parent 896a67d1d6
commit cfac9a1f73
4 changed files with 0 additions and 34 deletions

View File

@@ -635,7 +635,6 @@ void add_peer(struct lightningd *ld, u64 unique_id,
peer->next_index[LOCAL]
= peer->next_index[REMOTE] = 0;
peer->next_htlc_id = 0;
peer->htlcs = tal_arr(peer, struct htlc_stub, 0);
wallet_shachain_init(ld->wallet, &peer->their_shachain);
/* If we have the peer in the DB, this'll populate the fields,