wallet: cleanup the tal context in wallet_channels_load_active() and wallet_stmt2channel()

The original idea is to "tal" channel on the "ctx"(In fact, we'd like to set ctx as "ld").
But we already tal channel on "ld" in new_channel(), so "ctx" is unused.
This commit is contained in:
trueptolemy
2019-05-16 16:54:38 +08:00
committed by Rusty Russell
parent 6ee2cd8ce3
commit 0f429853fc
5 changed files with 7 additions and 8 deletions

View File

@@ -1178,7 +1178,7 @@ void load_channels_from_wallet(struct lightningd *ld)
struct peer *peer;
/* Load peers from database */
if (!wallet_channels_load_active(ld, ld->wallet))
if (!wallet_channels_load_active(ld->wallet))
fatal("Could not load channels from the database");
/* This is a poor-man's db join :( */