mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
committed by
Rusty Russell
parent
6ee2cd8ce3
commit
0f429853fc
@@ -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 :( */
|
||||
|
||||
Reference in New Issue
Block a user