From 3a3a1f948a96118609d520c7f8c84a4c0c5d6dc3 Mon Sep 17 00:00:00 2001 From: rekyyang <511965710@qq.com> Date: Mon, 24 Mar 2025 22:35:27 +0800 Subject: [PATCH] fmt & fix comments --- core/txpool/legacypool/legacypool.go | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index c713803a07..8c922001af 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -19,17 +19,6 @@ package legacypool import ( "errors" - "maps" - "math" - "math/big" - "slices" - "sort" - "sync" - "sync/atomic" - "time" - - "github.com/holiman/uint256" - "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/prque" "github.com/ethereum/go-ethereum/consensus/misc/eip1559" @@ -43,6 +32,15 @@ import ( "github.com/ethereum/go-ethereum/metrics" "github.com/ethereum/go-ethereum/params" "github.com/ethereum/go-ethereum/rlp" + "github.com/holiman/uint256" + "maps" + "math" + "math/big" + "slices" + "sort" + "sync" + "sync/atomic" + "time" ) const ( @@ -1850,7 +1848,7 @@ func (t *lookup) removeAuthorities(tx *types.Transaction) { } } -// delegationTxsCount return the txs which set auth to addr +// delegationTxsCount returns the number of pending authorizations for the specified address. func (t *lookup) delegationTxsCount(addr common.Address) int { t.lock.RLock() defer t.lock.RUnlock()