Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update client/service/src/builder.rs
Co-Authored-By: Tomasz Drwięga <[email protected]>
  • Loading branch information
drahnr and tomusdrw authored Mar 30, 2020
commit 6edd447e5cf6048359bb6beba61de9094e19ff0e
2 changes: 1 addition & 1 deletion client/service/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ ServiceBuilder<
if let ChainEvent::BlockReceived { ref header, is_new_best, is_initial_sync, .. } = event {
let offchain = offchain.as_ref().and_then(|o| o.upgrade());
match offchain {
Some(offchain) if is_initial_sync || is_new_best => {
Some(offchain) if is_new_best && !is_initial_sync => {
notifications_spawn_handle.spawn(
"offchain-on-block",
offchain.on_block_imported(
Expand Down