You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the configured network rather than extracing from the net graph
When we were only generating snapshots that contained parts of the
network graph, extracting the chain hash from the network graph
announcements themselves was fine. However, now that we also
serialize empty snapshots as a "no changes since your last sync"
file, we need to initialize the chain_hash to the real network.
Luckily, `config::network()` already exists to make this easy, so
we simply switch to that.
Fixes#92
@@ -156,13 +153,8 @@ pub(super) fn serialize_delta_set(channel_delta_set: DeltaSet, node_delta_set: N
156
153
let non_incremental_previous_update_threshold_timestamp = SystemTime::now().checked_sub(config::CHANNEL_REMINDER_AGE).unwrap().duration_since(UNIX_EPOCH).unwrap().as_secs()asu32;
0 commit comments