diff --git a/txpool/queue_account.go b/txpool/queue_account.go index 10801d5f2d..4d1d5c6044 100644 --- a/txpool/queue_account.go +++ b/txpool/queue_account.go @@ -78,10 +78,6 @@ func (q *accountQueue) push(tx *types.Transaction) { // peek returns the first transaction from the queue without removing it. func (q *accountQueue) peek() *types.Transaction { - if q.length() == 0 { - return nil - } - return q.queue.Peek() }