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

@@ -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)) {