Skip to content

Commit

Permalink
core/txpool: use len of index
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden committed Mar 10, 2023
1 parent e5b2889 commit 7a52cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7a52cb1

Please sign in to comment.