@@ -770,7 +770,7 @@ struct InboundEvents<E: EthSpec> {
770770 /// Used by upstream processes to send new work to the `BeaconProcessor`.
771771 event_rx : mpsc:: Receiver < WorkEvent < E > > ,
772772 /// Used internally for queuing work ready to be re-processed.
773- reprocess_work_rx : mpsc:: Receiver < ReadyWork > ,
773+ ready_work_rx : mpsc:: Receiver < ReadyWork > ,
774774}
775775
776776impl < E : EthSpec > Stream for InboundEvents < E > {
@@ -791,7 +791,7 @@ impl<E: EthSpec> Stream for InboundEvents<E> {
791791
792792 // Poll for delayed blocks before polling for new work. It might be the case that a delayed
793793 // 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) {
795795 Poll :: Ready ( Some ( ready_work) ) => {
796796 return Poll :: Ready ( Some ( InboundEvent :: ReprocessingWork ( ready_work. into ( ) ) ) ) ;
797797 }
@@ -947,7 +947,7 @@ impl<E: EthSpec> BeaconProcessor<E> {
947947 let mut inbound_events = InboundEvents {
948948 idle_rx,
949949 event_rx,
950- reprocess_work_rx : ready_work_rx,
950+ ready_work_rx,
951951 } ;
952952
953953 let enable_backfill_rate_limiting = self . config . enable_backfill_rate_limiting ;
@@ -1023,8 +1023,10 @@ impl<E: EthSpec> BeaconProcessor<E> {
10231023 . unwrap_or ( WORKER_FREED ) ;
10241024
10251025 // 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+ }
10281030 }
10291031
10301032 let can_spawn = self . current_workers < self . config . max_workers ;
0 commit comments