diff --git a/core/txpool/list.go b/core/txpool/list.go index cb7d50d5ced8..73ca8ddaa0ea 100644 --- a/core/txpool/list.go +++ b/core/txpool/list.go @@ -213,7 +213,7 @@ func (m *sortedMap) Ready(start uint64) types.Transactions { // Len returns the length of the transaction map. func (m *sortedMap) Len() int { - return m.index.Len() + return len(m.items) } func (m *sortedMap) flatten() types.Transactions {