Commit dbb51a3
committed
Don't pass a latest-block-time to
When calling `Channel::best_block_updated` we pass it the timestamp
of the block we're connecting so that it can track the highest
timestamp it has seen.
However, in some cases, we don't actually have a timestamp to pass,
which `Channel::best_block_updated` will happily ignore as it
always takes the `max` of its existing value. Thus, we really
should pass a `None` to ensure the API is understandable, which we
do here.Channel unless we have one1 parent 860639f commit dbb51a3
2 files changed
+28
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10156 | 10156 | | |
10157 | 10157 | | |
10158 | 10158 | | |
10159 | | - | |
10160 | | - | |
| 10159 | + | |
| 10160 | + | |
10161 | 10161 | | |
10162 | 10162 | | |
10163 | 10163 | | |
| |||
10173 | 10173 | | |
10174 | 10174 | | |
10175 | 10175 | | |
10176 | | - | |
| 10176 | + | |
10177 | 10177 | | |
10178 | 10178 | | |
10179 | 10179 | | |
| |||
10197 | 10197 | | |
10198 | 10198 | | |
10199 | 10199 | | |
10200 | | - | |
| 10200 | + | |
| 10201 | + | |
| 10202 | + | |
10201 | 10203 | | |
10202 | 10204 | | |
10203 | 10205 | | |
| |||
10352 | 10354 | | |
10353 | 10355 | | |
10354 | 10356 | | |
10355 | | - | |
10356 | | - | |
10357 | | - | |
10358 | | - | |
10359 | 10357 | | |
10360 | | - | |
| 10358 | + | |
| 10359 | + | |
10361 | 10360 | | |
10362 | 10361 | | |
10363 | 10362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13072 | 13072 | | |
13073 | 13073 | | |
13074 | 13074 | | |
13075 | | - | |
| 13075 | + | |
13076 | 13076 | | |
13077 | 13077 | | |
13078 | 13078 | | |
| |||
13122 | 13122 | | |
13123 | 13123 | | |
13124 | 13124 | | |
13125 | | - | |
| 13125 | + | |
| 13126 | + | |
| 13127 | + | |
| 13128 | + | |
| 13129 | + | |
| 13130 | + | |
| 13131 | + | |
| 13132 | + | |
| 13133 | + | |
| 13134 | + | |
| 13135 | + | |
13126 | 13136 | | |
13127 | 13137 | | |
13128 | 13138 | | |
| |||
13182 | 13192 | | |
13183 | 13193 | | |
13184 | 13194 | | |
13185 | | - | |
| 13195 | + | |
| 13196 | + | |
| 13197 | + | |
| 13198 | + | |
| 13199 | + | |
| 13200 | + | |
| 13201 | + | |
| 13202 | + | |
13186 | 13203 | | |
13187 | 13204 | | |
13188 | 13205 | | |
| |||
0 commit comments