Skip to content

Commit

Permalink
fix: limit the size of chainHeadChanSize
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Jul 22, 2022
1 parent 75445bb commit 287677a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import (

const (
// chainHeadChanSize is the size of channel listening to ChainHeadEvent.
chainHeadChanSize = 10
chainHeadChanSize = 9

// txSlotSize is used to calculate how many data slots a single transaction
// takes up based on its size. The slots are used as DoS protection, ensuring
Expand Down

0 comments on commit 287677a

Please sign in to comment.