From 7a52cb1c6b3998271a4527930b46d8bd58d4c905 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Fri, 10 Mar 2023 12:25:02 +0100 Subject: [PATCH] core/txpool: use len of index --- core/txpool/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/list.go b/core/txpool/list.go index 73ca8ddaa0ea..cb7d50d5ced8 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 len(m.items) + return m.index.Len() } func (m *sortedMap) flatten() types.Transactions {