Skip to content

Commit

Permalink
First block hack in create flow. It actually runs and imports blocks!!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshy Orndorff committed Oct 10, 2023
1 parent 63c00b8 commit d5b405f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tuxedo-core/src/inherents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,12 @@ impl<V: Verifier, C: ConstraintChecker<V>, T: TuxedoInherent<V, C>> InherentInte
panic!("Authoring a leaf inherent constraint checker, but multiple previous inherents were supplied.")
}

//TODO actually, maybe this is where the first-block hack should go now.
// This is how the first block hack manifests in the core
// TODO remove this if statement once genesis inherents are supported.
if previous_inherents.is_empty() {
return Vec::new();
}

let previous_inherent = previous_inherents.get(0).expect(
"Authoring a leaf inherent constraint checker, but no previous inherent was supplied.",
).clone();
Expand Down

0 comments on commit d5b405f

Please sign in to comment.