File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -607,15 +607,12 @@ impl<N: Network> Service<N> {
607607 // TODO: should we send the incoming block range or incoming block num -
608608 // reorg depth? The incoming block should be the
609609 // latest block from the reorg point so no real need
610- if sender. send ( Ok ( incoming_block_num..=incoming_block_num) ) . await . is_err ( ) {
611- warn ! ( "Downstream channel closed, stopping live blocks task (reorg)" ) ;
612- return ;
613- }
614- } else if sender
615- . send ( Ok ( expected_next_block..=incoming_block_num) )
616- . await
617- . is_err ( )
618- {
610+
611+ // resets cursor to incoming block num
612+ expected_next_block = incoming_block_num;
613+ }
614+
615+ if sender. send ( Ok ( expected_next_block..=incoming_block_num) ) . await . is_err ( ) {
619616 warn ! ( "Downstream channel closed, stopping live blocks task" ) ;
620617 return ;
621618 }
You can’t perform that action at this time.
0 commit comments