mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 09:04:22 +01:00
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:
committed by
Rusty Russell
parent
896a67d1d6
commit
cfac9a1f73
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user