ralexstokes / ethereum-consensus

Apache License 2.0
136 stars 51 forks source link

Refine `spec-gen` to import items from previous forks if they have no types that are changing #361

Closed ralexstokes closed 4 months ago

ralexstokes commented 5 months ago

consider compute_shuffled_index - right now the spec-gen blindly copies this function to each generated spec version, although there is no reason to do so unlike other functions that need to be updated with new types

the spec-gen utility should be updated to only copy something if it needs to be updated, and otherwise just import the existing thing from the previous spec