| 2485 | } |
| 2486 | |
| 2487 | bool wallet_init_channels(struct wallet *w) |
| 2488 | { |
| 2489 | /* We set the max channel database id separately */ |
| 2490 | set_max_channel_dbid(w); |
| 2491 | wallet_load_closed_channels(w, w->ld->closed_channels); |
| 2492 | return wallet_channels_load_active(w); |
| 2493 | } |
| 2494 | |
| 2495 | static void wallet_channel_stats_incr_x(struct wallet *w, |
| 2496 | u64 cdbid, |