Commit 971376f
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 8b098ab commit 971376f
2 files changed
+28
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10077 | 10077 | | |
10078 | 10078 | | |
10079 | 10079 | | |
10080 | | - | |
10081 | | - | |
| 10080 | + | |
| 10081 | + | |
10082 | 10082 | | |
10083 | 10083 | | |
10084 | 10084 | | |
| |||
10094 | 10094 | | |
10095 | 10095 | | |
10096 | 10096 | | |
10097 | | - | |
| 10097 | + | |
10098 | 10098 | | |
10099 | 10099 | | |
10100 | 10100 | | |
| |||
10118 | 10118 | | |
10119 | 10119 | | |
10120 | 10120 | | |
10121 | | - | |
| 10121 | + | |
| 10122 | + | |
| 10123 | + | |
10122 | 10124 | | |
10123 | 10125 | | |
10124 | 10126 | | |
| |||
10273 | 10275 | | |
10274 | 10276 | | |
10275 | 10277 | | |
10276 | | - | |
10277 | | - | |
10278 | | - | |
10279 | | - | |
10280 | 10278 | | |
10281 | | - | |
| 10279 | + | |
| 10280 | + | |
10282 | 10281 | | |
10283 | 10282 | | |
10284 | 10283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13236 | 13236 | | |
13237 | 13237 | | |
13238 | 13238 | | |
13239 | | - | |
| 13239 | + | |
13240 | 13240 | | |
13241 | 13241 | | |
13242 | 13242 | | |
| |||
13286 | 13286 | | |
13287 | 13287 | | |
13288 | 13288 | | |
13289 | | - | |
| 13289 | + | |
| 13290 | + | |
| 13291 | + | |
| 13292 | + | |
| 13293 | + | |
| 13294 | + | |
| 13295 | + | |
| 13296 | + | |
| 13297 | + | |
| 13298 | + | |
| 13299 | + | |
13290 | 13300 | | |
13291 | 13301 | | |
13292 | 13302 | | |
| |||
13346 | 13356 | | |
13347 | 13357 | | |
13348 | 13358 | | |
13349 | | - | |
| 13359 | + | |
| 13360 | + | |
| 13361 | + | |
| 13362 | + | |
| 13363 | + | |
| 13364 | + | |
| 13365 | + | |
| 13366 | + | |
13350 | 13367 | | |
13351 | 13368 | | |
13352 | 13369 | | |
| |||
0 commit comments