diff options
Diffstat (limited to 'ethutil/big.go')
-rw-r--r-- | ethutil/big.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ethutil/big.go b/ethutil/big.go index 1a3902fa3..c0488a71f 100644 --- a/ethutil/big.go +++ b/ethutil/big.go @@ -50,3 +50,11 @@ func BigCopy(src *big.Int) (ret *big.Int) { return } + +func BigMax(x, y *big.Int) *big.Int { + if x.Cmp(y) <= 0 { + return x + } + + return y +} |