File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
modules/block_vrf_validator/src/ouroboros Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ pub enum VrfValidationError {
6363 /// The pool lost the slot lottery
6464 #[ error( "VRF Leader Value Too Big" ) ]
6565 VrfLeaderValueTooBig ( #[ from] VrfLeaderValueTooBigError ) ,
66+ /// **Cause:** This slot is in the overlay schedule but marked as non-active.
67+ /// It's an intentional gap slot where no blocks should be produced.
68+ #[ error( "Not Active slot in overlay schedule: {slot}" ) ]
69+ NotActiveSlotInOverlaySchedule { slot : Slot } ,
6670 /// **Cause:** Some data has incorrect bytes
6771 #[ error( "TryFromSlice: {0}" ) ]
6872 TryFromSlice ( String ) ,
Original file line number Diff line number Diff line change @@ -152,7 +152,11 @@ pub fn validate_vrf_tpraos<'a>(
152152 }
153153 Some ( OBftSlot :: NonActiveSlot ) => {
154154 // This is a non-active slot; nobody may produce a block
155- Ok ( vec ! [ ] )
155+ Ok ( vec ! [ Box :: new( || {
156+ Err ( VrfValidationError :: NotActiveSlotInOverlaySchedule {
157+ slot: block_info. slot,
158+ } )
159+ } ) ] )
156160 }
157161 }
158162}
You can’t perform that action at this time.
0 commit comments