mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
params/forks: add After
This commit is contained in:
parent
31b636098f
commit
74f62ced68
1 changed files with 4 additions and 0 deletions
|
|
@ -102,6 +102,10 @@ func (f Fork) HasBlobs() bool {
|
||||||
return f&hasBlobs != 0
|
return f&hasBlobs != 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (f Fork) After(other Fork) bool {
|
||||||
|
return f&unconfigMask >= other&unconfigMask
|
||||||
|
}
|
||||||
|
|
||||||
// String implements fmt.Stringer.
|
// String implements fmt.Stringer.
|
||||||
func (f Fork) String() string {
|
func (f Fork) String() string {
|
||||||
s, ok := forkToString[f]
|
s, ok := forkToString[f]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue