Skip to content

Commit 3a3a1f9

Browse files
committed
fmt & fix comments
1 parent 3a22406 commit 3a3a1f9

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

core/txpool/legacypool/legacypool.go

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ package legacypool
1919

2020
import (
2121
"errors"
22-
"maps"
23-
"math"
24-
"math/big"
25-
"slices"
26-
"sort"
27-
"sync"
28-
"sync/atomic"
29-
"time"
30-
31-
"github.com/holiman/uint256"
32-
3322
"github.com/ethereum/go-ethereum/common"
3423
"github.com/ethereum/go-ethereum/common/prque"
3524
"github.com/ethereum/go-ethereum/consensus/misc/eip1559"
@@ -43,6 +32,15 @@ import (
4332
"github.com/ethereum/go-ethereum/metrics"
4433
"github.com/ethereum/go-ethereum/params"
4534
"github.com/ethereum/go-ethereum/rlp"
35+
"github.com/holiman/uint256"
36+
"maps"
37+
"math"
38+
"math/big"
39+
"slices"
40+
"sort"
41+
"sync"
42+
"sync/atomic"
43+
"time"
4644
)
4745

4846
const (
@@ -1850,7 +1848,7 @@ func (t *lookup) removeAuthorities(tx *types.Transaction) {
18501848
}
18511849
}
18521850

1853-
// delegationTxsCount return the txs which set auth to addr
1851+
// delegationTxsCount returns the number of pending authorizations for the specified address.
18541852
func (t *lookup) delegationTxsCount(addr common.Address) int {
18551853
t.lock.RLock()
18561854
defer t.lock.RUnlock()

0 commit comments

Comments
 (0)