params/forks: add After

This commit is contained in:
Felix Lange 2025-07-16 02:35:10 +02:00
parent 31b636098f
commit 74f62ced68

View file

@ -102,6 +102,10 @@ func (f Fork) HasBlobs() bool {
return f&hasBlobs != 0
}
func (f Fork) After(other Fork) bool {
return f&unconfigMask >= other&unconfigMask
}
// String implements fmt.Stringer.
func (f Fork) String() string {
s, ok := forkToString[f]