mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +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
@@ -290,7 +290,6 @@ int main(int argc, char *argv[])
|
||||
populate_peer(ld, peer);
|
||||
peer->seed = tal(peer, struct privkey);
|
||||
derive_peer_seed(ld, peer->seed, &peer->id, peer->channel->id);
|
||||
peer->htlcs = tal_arr(peer, struct htlc_stub, 0);
|
||||
peer->owner = NULL;
|
||||
if (!wallet_htlcs_load_for_channel(ld->wallet, peer->channel,
|
||||
&ld->htlcs_in, &ld->htlcs_out)) {
|
||||
|
||||
Reference in New Issue
Block a user