Skip to content

Commit

Permalink
fire notifications on initial sync too
Browse files Browse the repository at this point in the history
  • Loading branch information
Lederstrumpf committed Dec 6, 2022
1 parent 043849c commit a571c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/service/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@ where
// but the general goal is to only make notifications when we are already fully synced
// and get a new chain head.
let make_notifications = match origin {
BlockOrigin::NetworkBroadcast | BlockOrigin::Own | BlockOrigin::ConsensusBroadcast =>
BlockOrigin::NetworkBroadcast | BlockOrigin::Own | BlockOrigin::ConsensusBroadcast | BlockOrigin::NetworkInitialSync =>
true,
BlockOrigin::Genesis | BlockOrigin::NetworkInitialSync | BlockOrigin::File => false,
BlockOrigin::Genesis | BlockOrigin::File => false,
};

let storage_changes = match storage_changes {
Expand Down

0 comments on commit a571c51

Please sign in to comment.