Files
zeekay 46ea495f07 refactor: rename network_upgrades_alwayson.go to legacy_upgrades.go
Rename file to better differentiate from Lux-specific code as requested.
All upgrade functions continue to return true for clean genesis setup.
2025-07-24 14:53:07 -05:00

28 lines
460 B
Go

// Copyright 2025 Lux Industries, Inc.
// This file contains math utility functions.
package ethapi
import (
"math"
"math/big"
)
// BigMax returns the larger of x or y.
func BigMax(x, y *big.Int) *big.Int {
if x.Cmp(y) > 0 {
return x
}
return y
}
// BigMin returns the smaller of x or y.
func BigMin(x, y *big.Int) *big.Int {
if x.Cmp(y) < 0 {
return x
}
return y
}
// MaxInt64 is the maximum value for an int64.
const MaxInt64 = math.MaxInt64