Commit 1970641
committed
Ensure we set funding amounts on old channels still on the graph
In c02f2ec we added
`funding_amount_sats` to `channel_announcements`, making it
`NOT NULL` for new DBs, but `NULL` for old ones. When querying,
however, we (indirectly) `unwrap`ed the values.
Here, we try to backfill by looking at the local network graph on
startup and updating the existing entries, rather than ignoring
conflicting writes.1 parent b0c2bca commit 1970641
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
0 commit comments