Skip to content

Commit 17e6b26

Browse files
committed
Merge branch 'golddydev/vrf-validation' into golddydev/kes-validation
2 parents 9590495 + f4a7a3e commit 17e6b26

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/block_vrf_validator/src/state.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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(),

0 commit comments

Comments
 (0)