@@ -770,7 +770,7 @@ struct InboundEvents<E: EthSpec> {
770
770
/// Used by upstream processes to send new work to the `BeaconProcessor`.
771
771
event_rx : mpsc:: Receiver < WorkEvent < E > > ,
772
772
/// Used internally for queuing work ready to be re-processed.
773
- reprocess_work_rx : mpsc:: Receiver < ReadyWork > ,
773
+ ready_work_rx : mpsc:: Receiver < ReadyWork > ,
774
774
}
775
775
776
776
impl < E : EthSpec > Stream for InboundEvents < E > {
@@ -791,7 +791,7 @@ impl<E: EthSpec> Stream for InboundEvents<E> {
791
791
792
792
// Poll for delayed blocks before polling for new work. It might be the case that a delayed
793
793
// block is required to successfully process some new work.
794
- match self . reprocess_work_rx . poll_recv ( cx) {
794
+ match self . ready_work_rx . poll_recv ( cx) {
795
795
Poll :: Ready ( Some ( ready_work) ) => {
796
796
return Poll :: Ready ( Some ( InboundEvent :: ReprocessingWork ( ready_work. into ( ) ) ) ) ;
797
797
}
@@ -947,7 +947,7 @@ impl<E: EthSpec> BeaconProcessor<E> {
947
947
let mut inbound_events = InboundEvents {
948
948
idle_rx,
949
949
event_rx,
950
- reprocess_work_rx : ready_work_rx,
950
+ ready_work_rx,
951
951
} ;
952
952
953
953
let enable_backfill_rate_limiting = self . config . enable_backfill_rate_limiting ;
@@ -1023,8 +1023,10 @@ impl<E: EthSpec> BeaconProcessor<E> {
1023
1023
. unwrap_or ( WORKER_FREED ) ;
1024
1024
1025
1025
// We don't care if this message was successfully sent, we only use the journal
1026
- // during testing.
1027
- let _ = work_journal_tx. try_send ( id) ;
1026
+ // during testing. We also ignore reprocess messages to ensure our test cases can pass.
1027
+ if id != "reprocess" {
1028
+ let _ = work_journal_tx. try_send ( id) ;
1029
+ }
1028
1030
}
1029
1031
1030
1032
let can_spawn = self . current_workers < self . config . max_workers ;
0 commit comments