Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
fix(clist_mempool): return stats the map, not stats the function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Zygimantass committed May 16, 2023
1 parent 19511e1 commit c490beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mempool/v0/clist_mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (mem *CListMempool) SetLogger(l log.Logger) {
}

func (mem *CListMempool) Stats() map[p2p.ID]uint16 {
return mem.Stats()
return mem.stats
}

// WithPreCheck sets a filter for the mempool to reject a tx if f(tx) returns
Expand Down

0 comments on commit c490beb

Please sign in to comment.