File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
modules/block_vrf_validator/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ impl State {
8181 raw_header : & [ u8 ] ,
8282 genesis : & GenesisValues ,
8383 ) -> Result < ( ) , Box < VrfValidationError > > {
84+ // Validation starts after Shelley Era
85+ if block_info. epoch < genesis. shelley_epoch {
86+ return Ok ( ( ) ) ;
87+ }
88+
8489 let header = match MultiEraHeader :: decode ( block_info. era as u8 , None , raw_header) {
8590 Ok ( header) => header,
8691 Err ( e) => {
@@ -92,11 +97,6 @@ impl State {
9297 }
9398 } ;
9499
95- // Validation starts after Shelley Era
96- if block_info. epoch < genesis. shelley_epoch {
97- return Ok ( ( ) ) ;
98- }
99-
100100 let Some ( decentralisation_param) = self . decentralisation_param else {
101101 return Err ( Box :: new ( VrfValidationError :: Other (
102102 "Decentralisation Param is not set" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments