From 4d3104b764faa977db95015e8bb828195a49be3a Mon Sep 17 00:00:00 2001 From: tsinghuacoder Date: Fri, 11 Apr 2025 17:02:20 +0800 Subject: [PATCH] chore: remove duplicate package imports Signed-off-by: tsinghuacoder --- internal/ethapi/api.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index cd3f26c473..fdd3f85352 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -32,7 +32,6 @@ import ( "github.com/ethereum/go-ethereum/common/gopool" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" - cmath "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/consensus" "github.com/ethereum/go-ethereum/consensus/misc/eip1559" "github.com/ethereum/go-ethereum/core" @@ -544,9 +543,9 @@ func (api *BlockChainAPI) getFinalizedNumber(ctx context.Context, verifiedValida } valLen := len(curValidators) if verifiedValidatorNum == -1 { - verifiedValidatorNum = int64(cmath.CeilDiv(valLen, 2)) + verifiedValidatorNum = int64(math.CeilDiv(valLen, 2)) } else if verifiedValidatorNum == -2 { - verifiedValidatorNum = int64(cmath.CeilDiv(valLen*2, 3)) + verifiedValidatorNum = int64(math.CeilDiv(valLen*2, 3)) } else if verifiedValidatorNum == -3 { verifiedValidatorNum = int64(valLen) } else if verifiedValidatorNum < 1 || verifiedValidatorNum > int64(valLen) {